2023-04-12 16:56:55 +08:00
|
|
|
package base
|
|
|
|
|
|
|
|
type ResCondition struct {
|
|
|
|
Uuid string `db:"id"`
|
|
|
|
Id int `db:"id"`
|
|
|
|
Pid int `db:"pid"`
|
|
|
|
Type string `db:"type"`
|
|
|
|
CategoryUuid string `db:"category_uuid"`
|
|
|
|
Column string `db:"column"`
|
|
|
|
ColumnResource string `db:"columnResource"`
|
|
|
|
Operator string `db:"operator"`
|
|
|
|
ColumnSqlFunc string `db:"columnSqlFunc"`
|
|
|
|
ColumnSqlFuncParam string `db:"columnSqlFuncParam"`
|
|
|
|
IgnoreEmptyParma bool `db:"ignoreEmptyParma"`
|
|
|
|
ValueType string `db:"valueType"`
|
|
|
|
Value string `db:"value"`
|
|
|
|
UpdatedAt string `db:"updated_at"`
|
|
|
|
CreatedAt string `db:"created_at"`
|
|
|
|
}
|
2023-04-12 19:50:25 +08:00
|
|
|
|
|
|
|
type GetResConditions func(categoryUuid string) []ResCondition
|