[feat] add NewOrmModel helper

This commit is contained in:
what 2023-04-20 23:44:58 +08:00
parent 5779c89b2d
commit b1802123b9

View File

@ -30,4 +30,6 @@ type NewOrmOrderBy func(sql string, direction contracts.OrderByDirection) contra
type NewOrmGroupBy func(sql string) contracts.GroupBy 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 type NewOrm func(res contracts.Resource, tx *db.Transaction) contracts.Orm