2
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
// 身份审核列表
|
||||
|
||||
Reference in New Issue
Block a user