Documentation ¶
Index ¶
- func AddCondition(conditions *clause.Conditions, op string, columnName string, value any) error
- func GetColumnName(domainName string, fieldName string) (string, error)
- func IsSupportedOperator(op string) bool
- func RegisterByDomainEntity(items ...RegisterByEntityItem) error
- type Entity
- type GetQueryRuleDefinitionQueryParams
- type Info
- type Operator
- type RegisterByEntityItem
- type Simple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCondition ¶
func IsSupportedOperator ¶
func RegisterByDomainEntity ¶
func RegisterByDomainEntity(items ...RegisterByEntityItem) error
Types ¶
type Entity ¶
type Entity struct { FieldType string FieldName string FieldCNName string Operators []Operator ColumnName string }
func GetQueryRuleDefinitions ¶
type GetQueryRuleDefinitionQueryParams ¶
type GetQueryRuleDefinitionQueryParams struct {
DomainName string `form:"domainName" binding:"required" assign:"toField:DomainName"`
}
type RegisterByEntityItem ¶
Click to show internal directories.
Click to hide internal directories.