Documentation ¶
Overview ¶
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
Index ¶
- func HandleError(c *gin.Context, err error) bool
- func HandleErrorData(c *gin.Context, data interface{}, err error) bool
- func JsonData(c *gin.Context, data interface{})
- func JsonError(c *gin.Context, msg string, code ...ErrCode)
- func JsonErrorData(c *gin.Context, data interface{}, msg string, code ...ErrCode)
- func JsonSuccess(c *gin.Context)
- func ParseParamID(c *gin.Context) (uint, error)
- func ParseParamIDString(c *gin.Context) string
- type ErrCode
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonErrorData ¶
func ParseParamIDString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.