药房下线(禁用/删除)医生分流迁移
This commit is contained in:
@@ -9,6 +9,7 @@ type PharmacyRequest struct {
|
||||
GetPharmacyDoctorPage // 药房绑定的医生列表-分页
|
||||
GetPharmacyDoctorList // 药房绑定的医生列表
|
||||
PharmacyDoctorExportList // 药房关联医生-导出
|
||||
BatchTransferAndAction // 批量迁移医生默认药房并执行药房操作
|
||||
}
|
||||
|
||||
// PharmacyDoctorExportList 药房关联医生-导出
|
||||
@@ -89,3 +90,17 @@ type PutPharmacy struct {
|
||||
type PutPharmacyStatus struct {
|
||||
Status *int `json:"status" form:"status" label:"状态" validate:"required,oneof=0 1"`
|
||||
}
|
||||
|
||||
// BatchTransferDoctorItem 单个医生的迁移配置
|
||||
type BatchTransferDoctorItem struct {
|
||||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id" validate:"required"`
|
||||
TargetPharmacyId string `json:"target_pharmacy_id" form:"target_pharmacy_id" label:"目标药房id" validate:"required"`
|
||||
}
|
||||
|
||||
// BatchTransferAndAction 批量迁移医生默认药房并执行药房操作
|
||||
type BatchTransferAndAction struct {
|
||||
SourcePharmacyId string `json:"source_pharmacy_id" form:"source_pharmacy_id" label:"原药房id" validate:"required"`
|
||||
Action string `json:"action" form:"action" label:"操作类型" validate:"required,oneof=disable delete"`
|
||||
UnbindSource *int `json:"unbind_source" form:"unbind_source" label:"是否解绑原药房"` // 1:是 0:否,若action为delete则强制解绑
|
||||
Transfers []BatchTransferDoctorItem `json:"transfers" form:"transfers" label:"迁移列表" validate:"required,dive"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user