From 5779c89b2d7d517e9a8239d0afc02952061e6ad3 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 20 Apr 2023 22:44:01 +0800 Subject: [PATCH] =?UTF-8?q?[style]=20=E7=BB=9F=E4=B8=80=20orm=20helper=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/orm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helper/orm.go b/helper/orm.go index 02bb663..47b08cf 100644 --- a/helper/orm.go +++ b/helper/orm.go @@ -20,14 +20,14 @@ type NewOrmCondition func(typ contracts.ConditionType, describe string) contract type NewOrmConditionExpr func(rResource, rField, token string, operator contracts.ConditionOperator, tType contracts.ConditionTokenType, ignoreEmptyParma bool) contracts.ConditionExpr -type NewOrmConditionFuncExpr func(rResource, rField, token, fn, fnParam, string, operator contracts.ConditionOperator, tType contracts.ConditionTokenType, ignoreEmptyParma bool) contracts.ConditionExpr +type NewOrmConditionFuncExpr func(rResource, rField, token string, operator contracts.ConditionOperator, tType contracts.ConditionTokenType, ignoreEmptyParma bool, fn, fnParam string) contracts.ConditionExpr type NewOrmConditionByRes func(items []base.ResCondition) contracts.Condition type NewOrmQueryField func(rField base.ResField, t contracts.QueryDataType, alias string, options int) contracts.QueryField -type NewOrderBy func(sql string, direction contracts.OrderByDirection) contracts.OrderBy +type NewOrmOrderBy func(sql string, direction contracts.OrderByDirection) contracts.OrderBy -type NewGroupBy func(sql string) contracts.GroupBy +type NewOrmGroupBy func(sql string) contracts.GroupBy type NewOrm func(res contracts.Resource, tx *db.Transaction) contracts.Orm