Documentation ¶
Index ¶
- func HandleDataBaseError(c *gin.Context, err error)
- func HandleJSONError(c *gin.Context, err error)
- func HandleParamErrno(c *gin.Context, err error)
- func HandleReviewError(c *gin.Context, err error)
- func HandleWxLoginError(c *gin.Context, err error)
- func SendResponse(c *gin.Context, err error, data interface{})
- func SendResponseS(c *gin.Context, err error, data interface{}, status int)
- type Response
- type SafeMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDataBaseError ¶
HandleDataBaseError HandleDataBaseError
func HandleJSONError ¶
HandleJSONError HandleJSONError
func HandleParamErrno ¶
HandleParamErrno HandleParamErrno
func HandleReviewError ¶
HandleReviewError HandleReviewError
func HandleWxLoginError ¶
HandleWxLoginError HandleWxLoginError
func SendResponse ¶
SendResponse always return http.StatusOK
Types ¶
type Response ¶
type Response struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
Response global json struct
Click to show internal directories.
Click to hide internal directories.