新增配置文件处理
This commit is contained in:
@@ -20,7 +20,13 @@ func Init() *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
|
||||
// 获取请求参数中间件-json格式下会导致接口获取不到请求数据
|
||||
// r.Use(middlewares.RequestParamsMiddleware())
|
||||
|
||||
// 日志中间件
|
||||
r.Use(middlewares.Logrus())
|
||||
|
||||
// 异常
|
||||
r.Use(gin.Recovery())
|
||||
|
||||
// 404处理
|
||||
@@ -334,6 +340,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
||||
// 审核-审核医生
|
||||
doctorPendingGroup.PUT("/:doctor_id", api.UserDoctor.PutUserDoctorPending)
|
||||
}
|
||||
|
||||
//
|
||||
// // 医生详情
|
||||
// doctorGroup.GET("/:post_id", api.Post.GetPost)
|
||||
|
||||
Reference in New Issue
Block a user