医生绑定药房

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