Documentation
¶
Index ¶
- Constants
- Variables
- func Error(ctx *fasthttp.RequestCtx, msg string, statusCode int)
- func GetHeader(ctx *fasthttp.RequestCtx, key, defaultV string) string
- func GetParams(ctx *fasthttp.RequestCtx, key, defaultV string) string
- func GetToken(ctx *fasthttp.RequestCtx) string
- func JsonBody2Object(ctx *fasthttp.RequestCtx, obj any) error
- func JsonBodyUnmarshalObject[T fastjson.Unmarshalable](ctx *fasthttp.RequestCtx, obj T) error
- func Params(ctx *fasthttp.RequestCtx) map[string]any
Constants ¶
View Source
const ( SUCCESS = 0 FAIL = 1 )
Variables ¶
View Source
var DEFAULT_CONTENTTYPE = []byte("application/json;charset=utf-8")
View Source
var PageResultData = pageResultData{}
View Source
var PageResultDataBuilder = pageResultDataBuilder{}
View Source
var Result = result{}
Functions ¶
func GetHeader ¶ added in v1.0.1
func GetHeader(ctx *fasthttp.RequestCtx, key, defaultV string) string
func GetParams ¶ added in v1.0.1
func GetParams(ctx *fasthttp.RequestCtx, key, defaultV string) string
func GetToken ¶ added in v1.0.1
func GetToken(ctx *fasthttp.RequestCtx) string
func JsonBody2Object ¶ added in v1.0.1
func JsonBody2Object(ctx *fasthttp.RequestCtx, obj any) error
func JsonBodyUnmarshalObject ¶ added in v1.0.1
func JsonBodyUnmarshalObject[T fastjson.Unmarshalable](ctx *fasthttp.RequestCtx, obj T) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.