diff --git a/orm.go b/orm.go index 0b4d085..6e7b20e 100644 --- a/orm.go +++ b/orm.go @@ -156,13 +156,13 @@ type Condition interface { IsEmpty() bool IsNotEmpty() bool IsAlwaysRight() bool - ToSql(Model) db.Expression + ToSql(ModelParam) db.Expression AppendTo(Condition) SetExpr(ConditionExpr) Condition SetCondition(Condition) Condition SetMatchPrefix(string) Condition 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 {