Documentation ¶
Index ¶
- func ActionCreate(c *gin.Context, logMsg string, codeMsg string, err error, data interface{})
- func ActionCreateNoData(c *gin.Context, logMsg string, codeMsg string, err error)
- func ActionDelete(c *gin.Context, logMsg string, codeMsg string, err error)
- func ActionUpdate(c *gin.Context, logMsg string, codeMsg string, err error)
- func BaseBool(c *gin.Context, code string, b bool, errMsg string)
- func BaseCustomMsg(c *gin.Context, status bool, code string, msg string)
- func BaseData(c *gin.Context, data interface{})
- func BaseDataList(c *gin.Context, count int64, data interface{})
- func BaseError(c *gin.Context, code string, msg string)
- func BaseSuccess(c *gin.Context)
- func Data(c *gin.Context, errMessage string, codeMsg string, err error, data interface{})
- func DataList(c *gin.Context, errMessage string, codeMsg string, err error, ...)
- func DataNoErr(c *gin.Context, errMessage string, codeMsg string, err error, data interface{})
- func ErrorBadRequest(c *gin.Context, code string, codeMsg string)
- func ErrorLog(c *gin.Context, message string, err error, code string, codeMsg string)
- func WarnLog(c *gin.Context, message string, err error, code string, codeMsg string)
- type DataType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionCreate ¶
func ActionCreateNoData ¶
func BaseCustomMsg ¶
BaseCustomMsg 反馈自定义内容
func DataList ¶
func DataList(c *gin.Context, errMessage string, codeMsg string, err error, dataList interface{}, dataCount int64)
DataList 通用反馈列表方案
func ErrorBadRequest ¶
ErrorBadRequest 反馈错误但不带JSON重新标定
Types ¶
Click to show internal directories.
Click to hide internal directories.