Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
Type LogicOperator `json:"type"`
Field string `json:"field"` // 普通字段
FieldAdvance *clause.Column `json:"field_advance"` // 高级字段配置
OperatorType string `json:"operator_type"` // 操作符类型
Operator string `json:"operator"`
Value any `json:"value"`
ValueAdvance []clause.Column `json:"value_advance"` // 高级值配置
Conditions []Builder `json:"conditions"`
}
func (*Builder) ToGORM ¶
func (b *Builder) ToGORM() clause.Expression
type LogicOperator ¶
type LogicOperator string
LogicOperator 逻辑操作符类型
const ( AND LogicOperator = "and" Or LogicOperator = "or" )
func (LogicOperator) String ¶
func (l LogicOperator) String() string
func (LogicOperator) ToLower ¶
func (l LogicOperator) ToLower() LogicOperator
Click to show internal directories.
Click to hide internal directories.