diff --git a/contracts/contracts.go b/contracts/contracts.go index 75e90bd..00c5115 100644 --- a/contracts/contracts.go +++ b/contracts/contracts.go @@ -10,13 +10,13 @@ type Condition interface { IsEmpty() bool IsNotEmpty() bool IsAlwaysRight() bool - ToSql(condition.ConditionTokenValue) db.Expression + ToSql(condition.TokenValue) db.Expression AppendTo(Condition) SetExpr(ConditionExpr) Condition SetCondition(Condition) Condition SetMatchPrefix(string) Condition GetFields(operator condition.ConditionOperator, types ...condition.ConditionTokenType) map[string]string - GetFieldsValue(m condition.ConditionTokenValue, isWithResource bool) map[string]any + GetFieldsValue(m condition.TokenValue, isWithResource bool) map[string]any } type ConditionExpr interface { @@ -27,10 +27,10 @@ type ConditionExpr interface { SetMatchPrefix(string) ConditionExpr AppendTo(Condition) - ToSql(m condition.ConditionTokenValue) db.Expression + ToSql(m condition.TokenValue) db.Expression GetTokenName() string GetTokenType() condition.ConditionTokenType - GetTokenValue(condition.ConditionTokenValue) any - GetTokenSqlValue(condition.ConditionTokenValue) string - IsIgnoreEmptyParma(condition.ConditionTokenValue) bool + GetTokenValue(condition.TokenValue) any + GetTokenSqlValue(condition.TokenValue) string + IsIgnoreEmptyParma(condition.TokenValue) bool }