Documentation ¶
Index ¶
- Constants
- func Error(status int, str string) string
- func GetParam(r *http.Request, key string) string
- func GetParamInt(r *http.Request, key string) int
- func ListResult(list any, total int) string
- func ParseBody(r *http.Request, v any) any
- func PathVariable(path, key string, r *http.Request) string
- func Result(status int, message string) string
- func Success(data any) string
- type ListRes
- type Res
Constants ¶
View Source
const ( OK = 200 BadRequest = 400 UnAuthorized = 401 PermanentRequired = 402 Forbidden = 403 NotFound = 404 ServerError = 500 BadGateway = 502 )
Variables ¶
This section is empty.
Functions ¶
func ListResult ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.