Documentation
¶
Index ¶
- func GlobalOpenError(result interface{}, err error, c *gin.Context) *gin.Context
- func GlobalOpenNoAuth(c *gin.Context) *gin.Context
- func GlobalResponse(body interface{}, c *gin.Context) *gin.Context
- func GlobalResponseError(result interface{}, err error, c *gin.Context) *gin.Context
- func GlobalResponseMRT(header string, body string, c *gin.Context) *gin.Context
- func GlobalResponseNoAuth(c *gin.Context) *gin.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalOpenError ¶
func GlobalResponseError ¶
GlobalResponseError is used to wrap all the errored API responses under the same model. Automatically detect if there is an error and return status and code according
func GlobalResponseMRT ¶
GlobalResponseMRT is used to wrap all responses using a MRT token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.