This commit is contained in:
haomingming
2026-09-07 14:44:54 +08:00
parent dc9dee6c98
commit 0cff5b3f8d
5 changed files with 298 additions and 59 deletions
+8 -5
View File
@@ -372,22 +372,25 @@ func privateRouter(r *gin.Engine, api controller.Api) {
doctorGroup.POST("", api.UserDoctor.AddUserDoctor)
// 医生药房管理
doctorPharmacyGroup := doctorGroup.Group("/:doctor_id/pharmacy")
doctorPharmacyGroup := doctorGroup.Group("/pharmacy")
{
// 获取医生绑定的药房列表
doctorPharmacyGroup.GET("", api.DoctorPharmacy.GetDoctorPharmacies)
doctorPharmacyGroup.GET("/:doctor_id", api.DoctorPharmacy.GetDoctorPharmacies)
// 批量设置医生绑定的药房列表
doctorPharmacyGroup.PUT("", api.DoctorPharmacy.BindDoctorPharmacies)
doctorPharmacyGroup.PUT("/:doctor_id", api.DoctorPharmacy.BindDoctorPharmacies)
// 为医生新增单个药房绑定
doctorPharmacyGroup.POST("", api.DoctorPharmacy.AddDoctorPharmacy)
doctorPharmacyGroup.POST("/:doctor_id", api.DoctorPharmacy.AddDoctorPharmacy)
// 解除医生与指定药房的绑定
doctorPharmacyGroup.DELETE("/:pharmacy_id", api.DoctorPharmacy.UnbindDoctorPharmacy)
doctorPharmacyGroup.DELETE("/:id", api.DoctorPharmacy.UnbindDoctorPharmacy)
doctorPharmacyGroup.POST("/unbind", api.DoctorPharmacy.UnbindDoctorPharmacyPost)
// 设置医生的默认药房
doctorPharmacyGroup.PUT("/default/:pharmacy_id", api.DoctorPharmacy.SetDefaultDoctorPharmacy)
doctorPharmacyGroup.PUT("/default/:id", api.DoctorPharmacy.SetDefaultDoctorPharmacy)
doctorPharmacyGroup.PUT("/default", api.DoctorPharmacy.SetDefaultDoctorPharmacyPut)
}
// 身份审核列表