diff --git a/resource.go b/resource.go index 42ec05a..d3d4368 100644 --- a/resource.go +++ b/resource.go @@ -75,39 +75,5 @@ type ResField interface { ToBlueprint(table *schema.Blueprint) *schema.ColumnDefinition } -type ResRelation interface{} - -type ResJoin interface { - ResRelation -} - -type ResQueryField interface { - ResField - - IsExpr() bool - ToSql() db.Expression -} - -type ResCondition interface { - // 是否空条件 - IsEmpty() bool - // 条件是否恒成立 - IsRight() bool - // to sql 表达式 - ToSql() db.Expression -} - -type ResConditionExpr interface { - // 条件是否恒成立 - IsRight() bool - // to sql 表达式 - ToSql() db.Expression - - GetTokenName() string - GetTokenValue() any - GetTokenSqlValue() string - GetTokenType() ResConditionTokenType -} - // 资源 type GetResource func(code string) (Resource, bool)