新增配置文件处理

This commit is contained in:
2023-07-14 14:52:50 +08:00
parent f1dcd147fc
commit 593ea49554
12 changed files with 321 additions and 48 deletions
+7
View File
@@ -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)