新增im请求返回结构体

This commit is contained in:
2023-07-13 11:15:22 +08:00
parent a5522bcb63
commit 82353bbd35
3 changed files with 69 additions and 19 deletions
+4 -4
View File
@@ -184,13 +184,13 @@ func (r *UserDoctor) GetUserDoctorPendingPage(c *gin.Context) {
}
// 处理返回值
getUserDoctorPageResponses := userDoctorResponse.GetUserDoctorPendingPageResponse(userDoctor)
res := userDoctorResponse.GetUserDoctorPendingPageResponse(userDoctor)
result := make(map[string]interface{})
result["page"] = userDoctorRequest.GetUserDoctorPage.Page
result["page_size"] = userDoctorRequest.GetUserDoctorPage.PageSize
result["page"] = userDoctorRequest.GetUserDoctorPendingPage.Page
result["page_size"] = userDoctorRequest.GetUserDoctorPendingPage.PageSize
result["total"] = total
result["data"] = getUserDoctorPageResponses
result["data"] = res
responses.OkWithData(result, c)
}
+3
View File
@@ -783,6 +783,8 @@ func (r *UserDoctorService) AddUserDoctor(userId string, a requests.AddUserDocto
}
}
// 创建im账户
tx.Commit()
return true, nil
}
@@ -1129,6 +1131,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
return false, errors.New("审核失败")
}
// 更新医生im资料
}
// 修改医生数据