[feat] 统一 ORM 扩展条件入口
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"git.fsdpf.net/go/contracts"
|
||||
)
|
||||
|
||||
type ResQueryExtend struct {
|
||||
Uuid string `db:"uuid"`
|
||||
Category int64 `db:"category"` // 类型, 0=排序,1=分组
|
||||
@@ -17,5 +13,3 @@ type ResQueryExtend struct {
|
||||
}
|
||||
|
||||
type GetResQueryExtends func(categoryUuid string, category int64) []ResQueryExtend
|
||||
type GetOrderByResQueryExtends func(items ...ResQueryExtend) contracts.OrderBy
|
||||
type GetGroupByResQueryExtends func(items ...ResQueryExtend) contracts.GroupBy
|
||||
|
||||
Reference in New Issue
Block a user