From b1802123b910bbae30598831e4e73382d2dcc915 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 20 Apr 2023 23:44:58 +0800 Subject: [PATCH] [feat] add NewOrmModel helper --- helper/orm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper/orm.go b/helper/orm.go index 47b08cf..3acce88 100644 --- a/helper/orm.go +++ b/helper/orm.go @@ -30,4 +30,6 @@ type NewOrmOrderBy func(sql string, direction contracts.OrderByDirection) contra type NewOrmGroupBy func(sql string) contracts.GroupBy +type NewOrmModel func(res contracts.Resource, code, name string) contracts.Model + type NewOrm func(res contracts.Resource, tx *db.Transaction) contracts.Orm