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)
- func JsonErrorData(c *gin.Context, data interface{}, msg string)
- func JsonPageResult(c *gin.Context, data interface{}, page interface{})
- func JsonPagination(c *gin.Context, list interface{}, page interface{})
- func JsonPaging(c *gin.Context, data interface{}, total int)
- func JsonSuccess(c *gin.Context)
- func ParseParamID(c *gin.Context) (uint, error)
- func ParseParamIDString(c *gin.Context) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonErrorData ¶
func JsonPageResult ¶
func JsonPagination ¶
func JsonPaging ¶
func JsonSuccess ¶
func ParseParamIDString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.