新增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)
}