Documentation ¶
Index ¶
- type Parameters
- func (param Parameters) GetFieldOperator(field string) string
- func (param Parameters) GetFieldValue(field string) string
- func (param Parameters) GetFixedParamStr() string
- func (param Parameters) GetFixedParamStrWithoutPageSize() string
- func (param Parameters) GetLastPageRouteParamStr() string
- func (param Parameters) GetNextPageRouteParamStr() string
- func (param Parameters) GetRouteParamStr() string
- func (param Parameters) GetRouteParamStrWithoutPageSize() string
- func (param Parameters) IsAll() bool
- func (param Parameters) Join() string
- func (param Parameters) PK() []string
- func (param Parameters) SetPage(page string) Parameters
- func (param Parameters) WithIsAll(isAll bool) Parameters
- func (param Parameters) WithPK(id ...string) Parameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct { Page string PageSize string SortField string Columns []string SortType string Fields map[string]string }
func BaseParam ¶ added in v1.2.0
func BaseParam() Parameters
func GetParam ¶
func GetParam(values url.Values, defaultPageSize int, primaryKey, defaultSort string) Parameters
func GetParamFromUrl ¶
func GetParamFromUrl(value string, fromList bool, defaultPageSize int, primaryKey, defaultSort string) Parameters
func (Parameters) GetFieldOperator ¶ added in v1.1.2
func (param Parameters) GetFieldOperator(field string) string
func (Parameters) GetFieldValue ¶ added in v1.1.2
func (param Parameters) GetFieldValue(field string) string
func (Parameters) GetFixedParamStr ¶
func (param Parameters) GetFixedParamStr() string
func (Parameters) GetFixedParamStrWithoutPageSize ¶
func (param Parameters) GetFixedParamStrWithoutPageSize() string
func (Parameters) GetLastPageRouteParamStr ¶
func (param Parameters) GetLastPageRouteParamStr() string
func (Parameters) GetNextPageRouteParamStr ¶
func (param Parameters) GetNextPageRouteParamStr() string
func (Parameters) GetRouteParamStr ¶
func (param Parameters) GetRouteParamStr() string
func (Parameters) GetRouteParamStrWithoutPageSize ¶
func (param Parameters) GetRouteParamStrWithoutPageSize() string
func (Parameters) IsAll ¶ added in v1.2.0
func (param Parameters) IsAll() bool
func (Parameters) Join ¶ added in v1.1.8
func (param Parameters) Join() string
func (Parameters) PK ¶ added in v1.2.0
func (param Parameters) PK() []string
func (Parameters) SetPage ¶
func (param Parameters) SetPage(page string) Parameters
func (Parameters) WithIsAll ¶ added in v1.2.0
func (param Parameters) WithIsAll(isAll bool) Parameters
func (Parameters) WithPK ¶ added in v1.2.0
func (param Parameters) WithPK(id ...string) Parameters
Click to show internal directories.
Click to hide internal directories.