From e37bd8ebc9b7ff4aa6fc09e5567d258d93e1235a Mon Sep 17 00:00:00 2001 From: what Date: Thu, 15 Jun 2023 14:12:59 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=B0=86=20ModelParam=20=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {