Documentation ¶
Index ¶
- Constants
- type Parameters
- func (param Parameters) AddField(field, value string) Parameters
- func (param Parameters) DeleteDetailPk() Parameters
- func (param Parameters) DeleteEditPk() Parameters
- func (param Parameters) DeleteField(field string) Parameters
- func (param Parameters) DeleteIsAll() Parameters
- func (param Parameters) DeletePK() Parameters
- func (param Parameters) GetFieldOperator(field, suffix string) string
- func (param Parameters) GetFieldValue(field string) string
- func (param Parameters) GetFieldValues(field string) []string
- func (param Parameters) GetFieldValuesStr(field string) string
- func (param Parameters) GetFilterFieldValueEnd(field string) string
- func (param Parameters) GetFilterFieldValueStart(field string) string
- func (param Parameters) GetFixedParamStr() url.Values
- func (param Parameters) GetLastPageRouteParamStr() string
- func (param Parameters) GetNextPageRouteParamStr() string
- func (param Parameters) GetRouteParamStr() string
- func (param Parameters) GetRouteParamStrWithoutPageSize(page string) string
- func (param Parameters) IsAll() bool
- func (param Parameters) Join() string
- func (param Parameters) PK() string
- func (param Parameters) PKs() []string
- func (param Parameters) SetPage(page string) Parameters
- func (param Parameters) Statement(wheres, table, delimiter string, whereArgs []interface{}, ...) (string, []interface{}, []string)
- func (param Parameters) URL(page string) string
- func (param Parameters) URLNoAnimation(page string) string
- func (param Parameters) WithIsAll(isAll bool) Parameters
- func (param Parameters) WithPKs(id ...string) Parameters
- func (param Parameters) WithURLPath(path string) Parameters
Constants ¶
View Source
const ( Page = "__page" PageSize = "__pageSize" Sort = "__sort" SortType = "__sort_type" Columns = "__columns" Prefix = "__prefix" Pjax = "_pjax" IsAll = "__is_all" PrimaryKey = "__pk" True = "true" False = "false" FilterRangeParamStartSuffix = "_start__goadmin" FilterRangeParamEndSuffix = "_end__goadmin" FilterParamJoinInfix = "_goadmin_join_" FilterParamOperatorSuffix = "__goadmin_operator__" FilterParamCountInfix = "__goadmin_index__" Separator = "__goadmin_separator__" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct { Page string PageInt int PageSize string PageSizeInt int SortField string Columns []string SortType string Animation bool URLPath string Fields map[string][]string }
func BaseParam ¶ added in v1.2.0
func BaseParam() Parameters
func GetParamFromURL ¶ added in v1.2.5
func GetParamFromURL(urlStr string, defaultPageSize int, defaultSortType, primaryKey string) Parameters
func (Parameters) AddField ¶ added in v1.2.6
func (param Parameters) AddField(field, value string) Parameters
func (Parameters) DeleteDetailPk ¶ added in v1.2.6
func (param Parameters) DeleteDetailPk() Parameters
func (Parameters) DeleteEditPk ¶ added in v1.2.6
func (param Parameters) DeleteEditPk() Parameters
func (Parameters) DeleteField ¶ added in v1.2.6
func (param Parameters) DeleteField(field string) Parameters
func (Parameters) DeleteIsAll ¶ added in v1.2.6
func (param Parameters) DeleteIsAll() Parameters
func (Parameters) DeletePK ¶ added in v1.2.6
func (param Parameters) DeletePK() Parameters
func (Parameters) GetFieldOperator ¶ added in v1.1.2
func (param Parameters) GetFieldOperator(field, suffix string) string
func (Parameters) GetFieldValue ¶ added in v1.1.2
func (param Parameters) GetFieldValue(field string) string
func (Parameters) GetFieldValues ¶ added in v1.2.5
func (param Parameters) GetFieldValues(field string) []string
func (Parameters) GetFieldValuesStr ¶ added in v1.2.5
func (param Parameters) GetFieldValuesStr(field string) string
func (Parameters) GetFilterFieldValueEnd ¶ added in v1.2.3
func (param Parameters) GetFilterFieldValueEnd(field string) string
func (Parameters) GetFilterFieldValueStart ¶ added in v1.2.3
func (param Parameters) GetFilterFieldValueStart(field string) string
func (Parameters) GetFixedParamStr ¶
func (param Parameters) GetFixedParamStr() url.Values
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(page string) 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) PKs ¶ added in v1.2.5
func (param Parameters) PKs() []string
func (Parameters) SetPage ¶
func (param Parameters) SetPage(page string) Parameters
func (Parameters) URL ¶ added in v1.2.4
func (param Parameters) URL(page string) string
func (Parameters) URLNoAnimation ¶ added in v1.2.4
func (param Parameters) URLNoAnimation(page string) string
func (Parameters) WithIsAll ¶ added in v1.2.0
func (param Parameters) WithIsAll(isAll bool) Parameters
func (Parameters) WithPKs ¶ added in v1.2.5
func (param Parameters) WithPKs(id ...string) Parameters
func (Parameters) WithURLPath ¶ added in v1.2.6
func (param Parameters) WithURLPath(path string) Parameters
Click to show internal directories.
Click to hide internal directories.