From ebd32a8731b3ad80dabcbf6629f400ac2071ed0d Mon Sep 17 00:00:00 2001 From: what Date: Thu, 9 May 2024 14:03:40 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=90=88?= =?UTF-8?q?=E7=90=86=20condition=20=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orm.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/orm.go b/orm.go index 7a30a6a..92662cc 100644 --- a/orm.go +++ b/orm.go @@ -12,9 +12,6 @@ type OrmExecute int type RelationType string -type ConditionType string -type ConditionOperator string -type ConditionTokenType string type OrderByDirection string const ( @@ -132,12 +129,6 @@ type NewOrmRelation func(t RelationType, m Model, rResource, rField, rForeignKey type NewOrmJoin func(t RelationType, res req.Resource, alias, rResource, rField, rForeignKey string) Join -type NewOrmCondition func(typ ConditionType, describe string) *condition.Condition - -type NewOrmConditionExpr func(rResource, rField, token string, operator ConditionOperator, tType ConditionTokenType, ignoreEmptyParma bool) *condition.ConditionExpr - -type NewOrmConditionFuncExpr func(rResource, rField, token string, operator ConditionOperator, tType ConditionTokenType, ignoreEmptyParma bool, fn, fnParam string) *condition.ConditionExpr - type NewOrmQueryWithRecursive func(pField, cField string, root any, isWithoutCondition bool, depth int) QueryWithRecursive type NewOrmOrderBy func(sql string, direction OrderByDirection) OrderBy