医生绑定药房
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"`
|
||||
}
|
||||
@@ -58,6 +58,7 @@ type PutUserDoctor struct {
|
||||
IdCardBack string `json:"id_card_back" form:"id_card_back" label:"身份证背面图片"`
|
||||
SignImage string `json:"sign_image" form:"sign_image" label:"签名图片"`
|
||||
DoctorExpertise []string `json:"doctor_expertise" form:"doctor_expertise" label:"专长"`
|
||||
DoctorPharmacy []string `json:"doctor_pharmacy" form:"doctor_pharmacy" label:"药房"`
|
||||
Email string `json:"email" form:"email" label:"邮箱"`
|
||||
BankId string `json:"bank_id" form:"bank_id" validate:"required_with_all=BankCardCode BankCardProvinceId BankCardCityId BankCardCountyId" label:"银行id"`
|
||||
BankCardCode string `json:"bank_card_code" form:"bank_card_code" validate:"required_with_all=BankId BankCardProvinceId BankCardCityId BankCardCountyId" label:"银行卡号"`
|
||||
@@ -90,6 +91,7 @@ type AddUserDoctor struct {
|
||||
SignImage string `json:"sign_image" form:"sign_image" label:"签名图片"`
|
||||
CardNum string `json:"card_num" form:"card_num" validate:"required" label:"证件号码"`
|
||||
DoctorExpertise []string `json:"doctor_expertise" form:"doctor_expertise" label:"专长"`
|
||||
DoctorPharmacy []string `json:"doctor_pharmacy" form:"doctor_pharmacy" label:"药房"`
|
||||
Email string `json:"email" form:"email" label:"邮箱"`
|
||||
BankId string `json:"bank_id" form:"bank_id" validate:"required_with_all=BankCardCode BankCardProvinceId BankCardCityId BankCardCountyId" label:"银行id"`
|
||||
BankCardCode string `json:"bank_card_code" form:"bank_card_code" validate:"required_with_all=BankId BankCardProvinceId BankCardCityId BankCardCountyId" label:"银行卡号"`
|
||||
|
||||
Reference in New Issue
Block a user