新增患者详情
This commit is contained in:
@@ -71,12 +71,12 @@ func (r *UserPatient) GetUserPatient(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 业务处理
|
||||
userDoctorService := service.UserDoctorService{}
|
||||
getUserDoctorResponses, err := userDoctorService.GetUserDoctor(patientId)
|
||||
userPatientService := service.UserPatientService{}
|
||||
getUserPatientResponses, err := userPatientService.GetUserPatient(patientId)
|
||||
if err != nil {
|
||||
responses.FailWithMessage(err.Error(), c)
|
||||
return
|
||||
}
|
||||
|
||||
responses.OkWithData(getUserDoctorResponses, c)
|
||||
responses.OkWithData(getUserPatientResponses, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user