[feat] 新增 Token 选项
This commit is contained in:
parent
8270326a7b
commit
16a90b0469
@ -240,9 +240,10 @@ func Operator(v ConditionOperator) ExprOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TokenType(v ConditionTokenType) ExprOption {
|
func Token(token string, tType ConditionTokenType) ExprOption {
|
||||||
return func(option *ConditionExpr) {
|
return func(option *ConditionExpr) {
|
||||||
option.tokenType = v
|
option.token = token
|
||||||
|
option.tokenType = tType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user