[feat] add NewOrm helper
This commit is contained in:
parent
1ce61a8377
commit
ca259233c1
@ -3,6 +3,7 @@ package helper
|
||||
import (
|
||||
"git.fsdpf.net/go/contracts"
|
||||
"git.fsdpf.net/go/contracts/base"
|
||||
"git.fsdpf.net/go/db"
|
||||
)
|
||||
|
||||
// @title 创建关联模型
|
||||
@ -28,3 +29,5 @@ type NewOrmQueryField func(rField base.ResField, t contracts.QueryDataType, alia
|
||||
type NewOrderBy func(sql string, direction contracts.OrderByDirection) contracts.OrderBy
|
||||
|
||||
type NewGroupBy func(sql string) contracts.GroupBy
|
||||
|
||||
type NewOrm func(res contracts.Resource, tx *db.Transaction) contracts.Orm
|
||||
|
Loading…
Reference in New Issue
Block a user