[feat] 条件明细为规则函数做准备

This commit is contained in:
what 2023-12-27 10:25:59 +08:00
parent e61862bd42
commit cc13271821

View File

@ -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