2
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package requests
|
||||
|
||||
type DoctorPharmacyRequest struct {
|
||||
BindDoctorPharmacies // 批量绑定药房
|
||||
AddDoctorPharmacy // 新增单个药房绑定
|
||||
BindDoctorPharmacies // 批量绑定药房
|
||||
AddDoctorPharmacy // 新增单个药房绑定
|
||||
UnbindDoctorPharmacy // 解绑药房
|
||||
SetDefaultDoctorPharmacy // 设置默认药房
|
||||
}
|
||||
|
||||
// BindDoctorPharmacies 批量绑定药房
|
||||
@@ -13,6 +15,21 @@ type BindDoctorPharmacies struct {
|
||||
|
||||
// AddDoctorPharmacy 单个药房绑定
|
||||
type AddDoctorPharmacy struct {
|
||||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id"`
|
||||
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"`
|
||||
}
|
||||
|
||||
// UnbindDoctorPharmacy 解除药房绑定
|
||||
type UnbindDoctorPharmacy struct {
|
||||
DoctorPharmacyId string `json:"doctor_pharmacy_id" form:"doctor_pharmacy_id" label:"绑定关系id"`
|
||||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id"`
|
||||
PharmacyId string `json:"pharmacy_id" form:"pharmacy_id" label:"药房id"`
|
||||
}
|
||||
|
||||
// SetDefaultDoctorPharmacy 设置默认药房
|
||||
type SetDefaultDoctorPharmacy struct {
|
||||
DoctorPharmacyId string `json:"doctor_pharmacy_id" form:"doctor_pharmacy_id" label:"绑定关系id"`
|
||||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id"`
|
||||
PharmacyId string `json:"pharmacy_id" form:"pharmacy_id" label:"药房id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user