新增问诊订单详情。修改错误码格式

This commit is contained in:
2023-09-06 14:30:54 +08:00
parent dc0217d191
commit 654c0fed05
23 changed files with 810 additions and 59 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ func Init() *gin.Engine {
}
// 获取请求参数中间件-json格式下会导致接口获取不到请求数据
// r.Use(middlewares.RequestParamsMiddleware())
r.Use(middlewares.RequestParamsMiddleware())
// 日志中间件
r.Use(middlewares.Logrus())
@@ -35,7 +35,7 @@ func Init() *gin.Engine {
method := c.Request.Method
c.JSON(http.StatusNotFound, gin.H{
"msg": fmt.Sprintf("%s %s not found", method, path),
"code": consts.CLIENT_HTTP_NOT_FOUND,
"code": consts.ClientHttpNotFound,
"data": "",
})
})