[feat] 将 ModelParam 独立拆分
This commit is contained in:
parent
cd91c63096
commit
e37bd8ebc9
4
orm.go
4
orm.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user