Documentation
¶
Index ¶
- type Page
- type Response
- func NewBadRequest(msg string) Response
- func NewForbiddenResult(msg string) Response
- func NewResult(data interface{}, c string, msg string) Response
- func NewServerInternalErrorResult(err interface{}) Response
- func NewSuccessfulResult(data interface{}) Response
- func NewUnauthorizedResult(msg string) Response
- func ObtainSuccessfulResult(content interface{}, page int64, total int64, size int64) Response
- func ObtainSuccessfulResultWithData(data interface{}) Response
- type ServicePage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Response ¶
type Response struct { Code string `json:"status"` Msg string `json:"message"` Data interface{} `json:"data"` }
func NewForbiddenResult ¶
func NewServerInternalErrorResult ¶
func NewServerInternalErrorResult(err interface{}) Response
func NewSuccessfulResult ¶
func NewSuccessfulResult(data interface{}) Response
NewResult create new successful result
func NewUnauthorizedResult ¶
func ObtainSuccessfulResult ¶
func ObtainSuccessfulResultWithData ¶
func ObtainSuccessfulResultWithData(data interface{}) Response
type ServicePage ¶
Click to show internal directories.
Click to hide internal directories.