[feat] 将 ModelParam 独立拆分

This commit is contained in:
what 2023-06-15 14:12:59 +08:00
parent cd91c63096
commit e37bd8ebc9

4
orm.go
View File

@ -156,13 +156,13 @@ type Condition interface {
IsEmpty() bool IsEmpty() bool
IsNotEmpty() bool IsNotEmpty() bool
IsAlwaysRight() bool IsAlwaysRight() bool
ToSql(Model) db.Expression ToSql(ModelParam) db.Expression
AppendTo(Condition) AppendTo(Condition)
SetExpr(ConditionExpr) Condition SetExpr(ConditionExpr) Condition
SetCondition(Condition) Condition SetCondition(Condition) Condition
SetMatchPrefix(string) Condition SetMatchPrefix(string) Condition
GetFields(operator ConditionOperator, types ...ConditionTokenType) map[string]string GetFields(operator ConditionOperator, types ...ConditionTokenType) map[string]string
GetFieldsValue(m Model, isWithResource bool) map[string]any GetFieldsValue(m ModelParam, isWithResource bool) map[string]any
} }
type ConditionExpr interface { type ConditionExpr interface {