Documentation ¶
Index ¶
- func GenerateSliceIn[T any](srcItems []T) (string, []any)
- func GenerateSliceInEx[T any](fieldName string, srcItems []T) (string, []any)
- func WhereIntArray[T int | int64 | int32](items []int64) string
- func WhereStringArray(items []string) string
- type NumberRangeController
- type OrderItem
- type Page
- type SelectController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSliceIn ¶
func GenerateSliceInEx ¶
func WhereStringArray ¶
Types ¶
type NumberRangeController ¶
type Page ¶
type Page struct { PageNo int64 `json:"page_no,optional"` PageSize int64 `json:"page_size,optional"` StartTime int64 `json:"start_time,optional"` EndTime int64 `json:"end_time,optional"` SortBy []*OrderItem `json:"sort_by,optional"` GroupBy []string `json:"group_by,optional"` IgnoreTotal bool `json:"ignore_total,optional"` OnlyTotal bool `json:"only_total,optional"` Ids []int64 `json:"ids,optional"` States []int64 `json:"ids,optional"` }
func (*Page) GroupByStr ¶
func (*Page) OrderByExt ¶
type SelectController ¶
type SelectController[T int64 | string] struct { Values []T `json:"values,optional"` Exclude bool `json:"exclude,optional"` }
func (*SelectController[T]) ClickHouseWhere ¶
func (c *SelectController[T]) ClickHouseWhere(column string) (string, []T)
func (*SelectController[T]) MysqlWhere ¶
func (c *SelectController[T]) MysqlWhere(column string) (string, []any)
Click to show internal directories.
Click to hide internal directories.