[feat] 重命名 ConditionTokenValue => TokenValue

This commit is contained in:
what 2024-05-09 10:45:30 +08:00
parent f79e122b40
commit dd56166a13

View File

@ -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
}