Documentation ¶
Index ¶
- func ErrorAuthFail(c *gin.Context)
- func ErrorParam(c *gin.Context, wrongParam interface{})
- func ErrorSystem(c *gin.Context, msg string, data interface{})
- func Fail(c *gin.Context, dataCode int, msg string, data interface{}, logs interface{})
- func ReturnJson(Context *gin.Context, httpCode int, dataCode int, msg string, data interface{}, ...)
- func ReturnJsonFromString(Context *gin.Context, httpCode int, jsonStr string)
- func Success(c *gin.Context, msg string, data interface{}, logs interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReturnJson ¶
func ReturnJsonFromString ¶
将json字符窜以标准json格式返回(例如,从redis读取json、格式的字符串,返回给浏览器json格式)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.