药房下线(禁用/删除)医生分流迁移
This commit is contained in:
@@ -76,3 +76,43 @@ func GetPharmacyDoctorListDto(list []*model.DoctorPharmacy) []PharmacyDoctorDto
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// GetDoctorTitleName 获取医生职称名称
|
||||
func GetDoctorTitleName(title int) string {
|
||||
return doctorTitleMap[title]
|
||||
}
|
||||
|
||||
// BoundPharmacySimpleDto 医生绑定的药房简要信息
|
||||
type BoundPharmacySimpleDto struct {
|
||||
PharmacyId string `json:"pharmacy_id"`
|
||||
PharmacyName string `json:"pharmacy_name"`
|
||||
PharmacyCode string `json:"pharmacy_code"`
|
||||
IsDefault int `json:"is_default"`
|
||||
}
|
||||
|
||||
// AffectedDoctorItemDto 受影响的医生明细
|
||||
type AffectedDoctorItemDto struct {
|
||||
DoctorId string `json:"doctor_id"`
|
||||
DoctorPharmacyId string `json:"doctor_pharmacy_id"`
|
||||
UserId string `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
Mobile string `json:"mobile"`
|
||||
DoctorTitleName string `json:"doctor_title_name"`
|
||||
HospitalId string `json:"hospital_id"`
|
||||
HospitalName string `json:"hospital_name"`
|
||||
DepartmentCustomId string `json:"department_custom_id"`
|
||||
DepartmentCustomName string `json:"department_custom_name"`
|
||||
IsDefault int `json:"is_default"` // 在当前待下线药房是否为默认(1:是 0:否)
|
||||
OtherBoundPharmacies []BoundPharmacySimpleDto `json:"other_bound_pharmacies"` // 该医生名下绑定的其他可用药房
|
||||
}
|
||||
|
||||
// PharmacyAffectedDoctorsDto 下线预检受影响医生列表响应
|
||||
type PharmacyAffectedDoctorsDto struct {
|
||||
PharmacyId string `json:"pharmacy_id"`
|
||||
PharmacyName string `json:"pharmacy_name"`
|
||||
PharmacyCode string `json:"pharmacy_code"`
|
||||
Status int `json:"status"`
|
||||
DefaultDoctorCount int64 `json:"default_doctor_count"`
|
||||
TotalDoctorCount int64 `json:"total_doctor_count"`
|
||||
DoctorList []AffectedDoctorItemDto `json:"doctor_list"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user