From 1deaa426d230d205407143e798f3832d361062dd Mon Sep 17 00:00:00 2001 From: what-00 Date: Thu, 13 Apr 2023 14:47:54 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E4=BC=98=E5=8C=96=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) 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)