医生绑定药房
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user