新增问诊订单详情。修改错误码格式
This commit is contained in:
@@ -19,7 +19,7 @@ func Recover() gin.HandlerFunc {
|
||||
log.Printf("panic: %v\n", r)
|
||||
debug.PrintStack()
|
||||
c.JSON(http.StatusInternalServerError, gin.H{
|
||||
"code": consts.SERVER_ERROR,
|
||||
"code": consts.ServerError,
|
||||
"message": errorToString(r),
|
||||
"data": "",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user