19 lines
711 B
Go
19 lines
711 B
Go
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"`
|
|
}
|