{"modulePath":"github.com/ingted/go-admin","version":"v1.188.9487","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parameter\n\n## Constants\n\n```go\nconst (\n\tPage     = \"__page\"\n\tPageSize = \"__pageSize\"\n\tSort     = \"__sort\"\n\tSortType = \"__sort_type\"\n\tColumns  = \"__columns\"\n\tPrefix   = \"__prefix\"\n\tPjax     = \"_pjax\"\n\n\tIsAll      = \"__is_all\"\n\tPrimaryKey = \"__pk\"\n\n\tTrue  = \"true\"\n\tFalse = \"false\"\n\n\tFilterRangeParamStartSuffix = \"_start__goadmin\"\n\tFilterRangeParamEndSuffix   = \"_end__goadmin\"\n\tFilterParamJoinInfix        = \"_goadmin_join_\"\n\tFilterParamOperatorSuffix   = \"__goadmin_operator__\"\n\tFilterParamCountInfix       = \"__goadmin_index__\"\n\n\tSeparator = \"__goadmin_separator__\"\n)\n```\n\n## Types\n\n```go\ntype Parameters struct {\n\tPage        string\n\tPageInt     int\n\tPageSize    string\n\tPageSizeInt int\n\tSortField   string\n\tColumns     []string\n\tSortType    string\n\tAnimation   bool\n\tURLPath     string\n\tFields      map[string][]string\n}\n```\n\n```go\nfunc BaseParam() Parameters\n```\n\n```go\nfunc GetParam(u *url.URL, defaultPageSize int, p ...string) Parameters\n```\n\n```go\nfunc GetParamFromURL(urlStr string, defaultPageSize int, defaultSortType, primaryKey string) Parameters\n```\n\n```go\nfunc (param Parameters) AddField(field, value string) Parameters\n```\n\n```go\nfunc (param Parameters) DeleteDetailPk() Parameters\n```\n\n```go\nfunc (param Parameters) DeleteEditPk() Parameters\n```\n\n```go\nfunc (param Parameters) DeleteField(field string) Parameters\n```\n\n```go\nfunc (param Parameters) DeleteIsAll() Parameters\n```\n\n```go\nfunc (param Parameters) DeletePK() Parameters\n```\n\n```go\nfunc (param Parameters) GetFieldOperator(field, suffix string) string\n```\n\n```go\nfunc (param Parameters) GetFieldValue(field string) string\n```\n\n```go\nfunc (param Parameters) GetFieldValues(field string) []string\n```\n\n```go\nfunc (param Parameters) GetFieldValuesStr(field string) string\n```\n\n```go\nfunc (param Parameters) GetFilterFieldValueEnd(field string) string\n```\n\n```go\nfunc (param Parameters) GetFilterFieldValueStart(field string) string\n```\n\n```go\nfunc (param Parameters) GetFixedParamStr() url.Values\n```\n\n```go\nfunc (param Parameters) GetFixedParamStrWithoutColumnsAndPage() string\n```\n\n```go\nfunc (param Parameters) GetFixedParamStrWithoutSort() string\n```\n\n```go\nfunc (param Parameters) GetLastPageRouteParamStr() string\n```\n\n```go\nfunc (param Parameters) GetNextPageRouteParamStr() string\n```\n\n```go\nfunc (param Parameters) GetRouteParamStr() string\n```\n\n```go\nfunc (param Parameters) GetRouteParamStrWithoutPageSize(page string) string\n```\n\n```go\nfunc (param Parameters) IsAll() bool\n```\n\n```go\nfunc (param Parameters) Join() string\n```\n\n```go\nfunc (param Parameters) PK() string\n```\n\n```go\nfunc (param Parameters) PKs() []string\n```\n\n```go\nfunc (param Parameters) SetPage(page string) Parameters\n```\n\n```go\nfunc (param Parameters) Statement(wheres, table, delimiter string, whereArgs []interface{}, columns, existKeys []string,\n\tfilterProcess func(string, string, string) string) (string, []interface{}, []string)\n```\n\n```go\nfunc (param Parameters) URL(page string) string\n```\n\n```go\nfunc (param Parameters) URLNoAnimation(page string) string\n```\n\n```go\nfunc (param Parameters) WithIsAll(isAll bool) Parameters\n```\n\n```go\nfunc (param Parameters) WithPKs(id ...string) Parameters\n```\n\n```go\nfunc (param Parameters) WithURLPath(path string) Parameters\n```\n\n","path":"github.com/ingted/go-admin/plugins/admin/modules/parameter","name":"parameter","synopsis":"","isRedistributable":true}
