Documentation
¶
Index ¶
Constants ¶
View Source
const ( Equal Operator = "=" NotEqual Operator = "!=" Lt Operator = "<" Gt Operator = ">" Lte Operator = "<=" Gte Operator = ">=" Constains Operator = "contains" NotContains Operator = "not contains" StartsWith Operator = "starts with" NotStartWith Operator = "not starts with" EndWith Operator = "ends with" NotEndWith Operator = "not ends with" Exists Operator = "exists" NotExists Operator = "not exists" And LogicOperator = "AND" Or LogicOperator = "OR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryOperation ¶
type BinaryOperation struct {
Operator Operator `` /* 145-byte string literal not displayed */
Value string `schema:"Ожидаемое значение"`
Field string `` /* 135-byte string literal not displayed */
MappingSrcField string `schema:"Исходное название поля маппинга"`
SearchInCustom bool `` /* 223-byte string literal not displayed */
IsPrimaryKey bool `` /* 222-byte string literal not displayed */
}
func (BinaryOperation) IsValid ¶
func (bo BinaryOperation) IsValid() bool
type LogicOperation ¶
type LogicOperation struct {
LogicOperator LogicOperator `schema:"Логический оператор,['AND', 'OR']"`
Terms []Term `schema:"Список условий"`
}
func (LogicOperation) IsValid ¶
func (lo LogicOperation) IsValid() bool
type LogicOperator ¶
type LogicOperator string
type Term ¶
type Term struct {
LogicOperation *LogicOperation `schema:"Логическая операция"`
BinaryOperation *BinaryOperation `schema:"Бинарная операция"`
}
Click to show internal directories.
Click to hide internal directories.