医生绑定药房

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
+18
View File
@@ -0,0 +1,18 @@
package requests
type DoctorPharmacyRequest struct {
BindDoctorPharmacies // 批量绑定药房
AddDoctorPharmacy // 新增单个药房绑定
}
// BindDoctorPharmacies 批量绑定药房
type BindDoctorPharmacies struct {
PharmacyIds []string `json:"pharmacy_ids" form:"pharmacy_ids" label:"药房id列表"`
DefaultPharmacyId string `json:"default_pharmacy_id" form:"default_pharmacy_id" label:"默认药房id"`
}
// AddDoctorPharmacy 单个药房绑定
type AddDoctorPharmacy struct {
PharmacyId string `json:"pharmacy_id" form:"pharmacy_id" label:"药房id" validate:"required"`
IsDefault *int `json:"is_default" form:"is_default" label:"是否默认" validate:"omitempty,oneof=0 1"`
}