[feat] 条件明细为规则函数做准备
This commit is contained in:
parent
e61862bd42
commit
cc13271821
@ -19,6 +19,24 @@ type ResCondition struct {
|
||||
CreatedAt string `db:"created_at"`
|
||||
}
|
||||
|
||||
type ResWhere struct {
|
||||
Type string `json:"type"`
|
||||
Exprs []ResWhereExpr `json:"exprs"`
|
||||
Children *[]ResWhere `json:"children"`
|
||||
}
|
||||
|
||||
type ResWhereExpr struct {
|
||||
Column string `json:"column"`
|
||||
ColumnResource string `json:"columnResource"`
|
||||
Operator string `json:"operator"`
|
||||
ColumnSqlFunc string `json:"columnSqlFunc"`
|
||||
ColumnSqlFuncParam string `json:"columnSqlFuncParam"`
|
||||
IgnoreEmptyParma int `json:"ignoreEmptyParma"`
|
||||
Value string `json:"value"`
|
||||
ValueType string `json:"valueType"`
|
||||
Enabled bool `json:"enabled"`
|
||||
}
|
||||
|
||||
type GetResConditions func(categoryUuid string) []ResCondition
|
||||
|
||||
type GetOrmConditionByRes func(categoryUuid string, describe string) contracts.Condition
|
||||
|
Loading…
Reference in New Issue
Block a user