新增im请求返回结构体
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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资料
|
||||
}
|
||||
|
||||
// 修改医生数据
|
||||
|
||||
Reference in New Issue
Block a user