|
@@ -22,7 +22,7 @@ type ResultData struct {
|
|
|
Code int `json:"code" description:"状态码"`
|
|
|
Msg string `json:"msg" description:"提示信息"`
|
|
|
Data interface{} `json:"data" description:"返回数据"`
|
|
|
- ErrMsg string `json:"-" description:"错误信息,不用返回给前端,只是做日志记录"`
|
|
|
+ ErrMsg string `json:"errMsg" description:"错误信息,不用返回给前端,只是做日志记录"`
|
|
|
}
|
|
|
|
|
|
func result(code int, resultData ResultData, c *gin.Context) {
|