Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnItem ¶
type ColumnItem struct { Field string `json:"field"` FieldName string `json:"field_name"` FieldAttr *FieldAttr `json:"field_attr"` Hidden bool `json:"-"` ValueCallBack func(rowData interface{}) string `json:"-"` OriValueCallBack func(rowData interface{}) interface{} `json:"-"` ValueAttrCallBack func(rowData interface{}) string `json:"-"` CanFilter bool `json:"-"` FilterType *FilterType `json:"-"` FilterField string `json:"-"` }
ColumnItem 列
type Columns ¶
type Columns struct { ListName string `json:"list_name"` ListID string `json:"list_id"` RelevantListID string `json:"relevant_list_id"` // 此字段主要用于一个列表方法用在多处路由上,防止没有权限的情况出现,具体用法可以参照奖金流水列表 ColumnList ColumnList }
Columns 列表信息
type ExportFile ¶
ExportFile 导出文件
type FilterType ¶
func YesNoFilterType ¶
func YesNoFilterType(yesNoLabel ...string) (re *FilterType)
YesNoFilterType 是或否的筛选条件
type FilterWhereParam ¶
FilterWhereParam 筛选参数
func FilterWhereAndParams ¶
func FilterWhereAndParams(r *ghttp.Request, columns *Columns) (re *FilterWhereParam, err error)
FilterWhereAndParams 筛选用到的where 和 params
type Result ¶
type Result struct { Columns ColumnList `json:"columns"` List ResultList `json:"list"` ListID string `json:"list_id"` TotalCount int `json:"total_count"` Page int `json:"page"` PageSize int `json:"page_size"` TotalPage int `json:"total_page"` PageCount int `json:"page_count"` FilterTypes []*ResultFilterTypesItem `json:"filter_types"` }
Result 返回的结果
type ResultFilterTypesItem ¶
type ResultListValue ¶
type ResultListValue struct { Value string `json:"value"` OriValue interface{} `json:"ori_value"` ValueAttr interface{} `json:"value_attr"` }
ResultListValue 结果列表集
Click to show internal directories.
Click to hide internal directories.