contracts/base/res_query_extend.go

16 lines
676 B
Go

package base
type ResQueryExtend struct {
Uuid string `db:"uuid"`
Category int64 `db:"category"` // 类型, 0=排序,1=分组
CategoryUuid string `db:"category_uuid"` // 所属UUID
Type string `db:"type"` // 表达式类型. sql/field
Expr string `db:"expr"` // 表达式
Extra map[string]any `db:"extra"` // 扩展配置
Serial int64 `db:"serial"` // 权重
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
}
type GetResQueryExtends func(categoryUuid string, category int64) []ResQueryExtend