修改云证书申请判断

This commit is contained in:
2023-12-01 10:55:06 +08:00
parent 0b8e5a0264
commit 9949125252
3 changed files with 19 additions and 70 deletions
+9
View File
@@ -84,6 +84,7 @@ type UserDoctorPendingDto struct {
Hospital *HospitalDto `json:"hospital"` // 医院
UserDoctorInfo *UserDoctorInfoDto `json:"user_doctor_info"` // 医生详情
DoctorExpertise []*DoctorExpertiseDto `json:"doctor_expertise"` // 医生专长
UserCaCert *UserCaCertDto `json:"user_ca_cert"` // ca监管证书
}
func GetUserDoctorDto(m *model.UserDoctor) *UserDoctorDto {
@@ -371,6 +372,14 @@ func (r *UserDoctorDto) LoadUserCaCert(m *model.UserCaCert) *UserDoctorDto {
return r
}
// LoadUserCaCert 加载医生云证书详情
func (r *UserDoctorPendingDto) LoadUserCaCert(m *model.UserCaCert) *UserDoctorPendingDto {
if m != nil {
r.UserCaCert = GetUserCaCertDto(m)
}
return r
}
// LoadUserDoctorInfo 加载医生详情
func (r *UserDoctorPendingDto) LoadUserDoctorInfo(m *model.UserDoctorInfo) *UserDoctorPendingDto {
if m != nil {