[feat] 调整 ResQueryExtend 类型
This commit is contained in:
parent
b4c13f60d2
commit
fb154c6422
@ -1,5 +1,9 @@
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
|
import (
|
||||||
|
"git.fsdpf.net/go/contracts"
|
||||||
|
)
|
||||||
|
|
||||||
type ResQueryExtend struct {
|
type ResQueryExtend struct {
|
||||||
Uuid string `db:"uuid"`
|
Uuid string `db:"uuid"`
|
||||||
Category int64 `db:"category"` // 类型, 0=排序,1=分组
|
Category int64 `db:"category"` // 类型, 0=排序,1=分组
|
||||||
@ -12,19 +16,6 @@ type ResQueryExtend struct {
|
|||||||
CreatedAt string `db:"created_at"`
|
CreatedAt string `db:"created_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResQueryOrder struct {
|
|
||||||
Uuid string
|
|
||||||
Type string // 表达式类型. sql/field
|
|
||||||
Expr string // 表达式
|
|
||||||
Direction string // 排序方式
|
|
||||||
}
|
|
||||||
|
|
||||||
type ResQueryGroup struct {
|
|
||||||
Uuid string
|
|
||||||
Type string // 表达式类型. sql/field
|
|
||||||
Expr string // 表达式
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetResQueryExtends func(categoryUuid string, category int64) []ResQueryExtend
|
type GetResQueryExtends func(categoryUuid string, category int64) []ResQueryExtend
|
||||||
type GetResQueryOrders func(categoryUuid string) []ResQueryOrder
|
type GetOrderByResQueryExtends func(items ...ResQueryExtend) contracts.OrderBy
|
||||||
type GetResQueryGroups func(categoryUuid string) []ResQueryGroup
|
type GetGroupByResQueryExtends func(items ...ResQueryExtend) contracts.GroupBy
|
||||||
|
Loading…
Reference in New Issue
Block a user