新增搜索医生参数问题
This commit is contained in:
@@ -990,6 +990,13 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
||||
return false, errors.New("已审核成功,无法进行操作")
|
||||
}
|
||||
|
||||
// 获取医院名称
|
||||
hospitalDao := dao.Hospital{}
|
||||
hospital, err := hospitalDao.GetHospitalById(userDoctor.HospitalID)
|
||||
if err != nil {
|
||||
return false, errors.New("审核失败")
|
||||
}
|
||||
|
||||
userDoctorData := make(map[string]interface{}) // 医生数据
|
||||
userDoctorInfoData := make(map[string]interface{}) // 医生详情数据
|
||||
|
||||
@@ -1137,6 +1144,22 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
||||
}
|
||||
|
||||
// 更新医生im资料
|
||||
profileItem := []tencentIm.ProfileItem{
|
||||
{
|
||||
Tag: "Tag_Profile_Custom_Hname", // 医院
|
||||
Value: hospital.HospitalName,
|
||||
},
|
||||
{
|
||||
Tag: "Tag_Profile_Custom_Title", // 职称
|
||||
Value: hospital.HospitalName,
|
||||
},
|
||||
}
|
||||
res, err := tencentIm.SetProfile(strconv.FormatInt(userDoctor.UserId, 10), profileItem)
|
||||
if err != nil || res != true {
|
||||
tx.Rollback()
|
||||
return false, errors.New(err.Error())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 修改医生数据
|
||||
|
||||
Reference in New Issue
Block a user