Documentation
¶
Index ¶
Constants ¶
View Source
const ( InputTypeNumber = "InputTypeNumber" MultiSelectTypeArrayNumber = "MultiSelectTypeArrayNumber" RangeSliderTypeArrayNumber = "RangeSliderTypeArrayNumber" InputTypeString = "InputTypeString" ArrayStringType = "ArrayStringType" //not sure what element should be, we can rename it whenever we need it SelectTypeStringString = "SelectTypeStringString" SelectTypeIntString = "SelectTypeIntString" DateTimePickerTypeDateTime = "DateTimePickerTypeDateTime" DatePickerTypeDate = "DatePickerTypeDate" RangeDateTimePickerTypeArrayDateTime = "RangeDateTimePickerTypeArrayDateTime" RangeDatePickerTypeArrayDate = "RangeDatePickerTypeArrayDate" CheckboxTypeBoolean = "CheckboxTypeBoolean" )
View Source
const (
FieldTypeBool = "Bool"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Key string Label string FilterType string FieldType string Searchable bool Sortable bool Visible bool DataStringKeyStringValue []StringKeyStringValue DataIntKeyStringValue []IntKeyStringValue }
type Crud ¶
type Crud struct { }
func (*Crud) ExtractListParams ¶
func (c *Crud) ExtractListParams(cols []Column, request *ListRequest) SearchParams
func (*Crud) GenerateListMysqlQuery ¶ added in v0.8.4
func (c *Crud) GenerateListMysqlQuery(params SearchParams) *beeorm.Where
func (*Crud) GenerateListRedisSearchQuery ¶
func (c *Crud) GenerateListRedisSearchQuery(params SearchParams) *beeorm.RedisSearchQuery
GenerateListRedisSearchQuery TODO : add full text queries when supported by hitrix
type IntKeyStringValue ¶ added in v1.2.33
type ListRequest ¶
type SearchParams ¶
type SearchParams struct { Page int PageSize int StringORFilters map[string]string StringFilters map[string]string TagFilters map[string]string ArrayStringFilters map[string][]string NumberFilters map[string]int64 ArrayNumberFilters map[string][]int64 RangeNumberFilters map[string][]int64 DateTimeFilters map[string]time.Time DateFilters map[string]time.Time RangeDateTimeFilters map[string][]time.Time RangeDateFilters map[string][]time.Time BooleanFilters map[string]bool Sort map[string]bool }
type StringKeyStringValue ¶ added in v1.2.33
Click to show internal directories.
Click to hide internal directories.