调整OR语句取值类型
This commit is contained in:
parent
2e2846ddb0
commit
c5985c2820
@ -20,8 +20,8 @@ type SetOption func(o *Option)
|
||||
//
|
||||
// Date : 20:07 2022/7/23
|
||||
type ORCondition struct {
|
||||
Express string `json:"express"` // 表达式
|
||||
Value string `json:"value"` // 绑定值
|
||||
Express string `json:"express"` // 表达式
|
||||
Value interface{} `json:"value"` // 绑定值
|
||||
}
|
||||
|
||||
// Option 扩展选项
|
||||
@ -286,7 +286,7 @@ func WithBatchNotEqual(data map[string]interface{}) SetOption {
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 20:03 2022/7/23
|
||||
func WithOR(orConditionList []*ORCondition) SetOption {
|
||||
func WithOR(orConditionList ...*ORCondition) SetOption {
|
||||
return func(o *Option) {
|
||||
if nil == o.OR {
|
||||
o.OR = make([]*ORCondition, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user