|  | @ -4,7 +4,6 @@ import com.yihu.jw.entity.base.patient.BasePatientDO;
 | 
												
													
														
															|  | import com.yihu.jw.entity.base.sms.SmsDO;
 |  | import com.yihu.jw.entity.base.sms.SmsDO;
 | 
												
													
														
															|  | import com.yihu.jw.entity.base.sms.SmsTemplateDO;
 |  | import com.yihu.jw.entity.base.sms.SmsTemplateDO;
 | 
												
													
														
															|  | import com.yihu.jw.patient.service.personal_Info.PatientService;
 |  | import com.yihu.jw.patient.service.personal_Info.PatientService;
 | 
												
													
														
															|  | import com.yihu.jw.patient.util.ConstantUtils;
 |  | 
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.base.patient.BasePatientVO;
 |  | import com.yihu.jw.restmodel.base.patient.BasePatientVO;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.base.sms.SmsVO;
 |  | import com.yihu.jw.restmodel.base.sms.SmsVO;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.Envelop;
 |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
												
											
												
													
														
															|  | @ -96,15 +95,31 @@ public class PatientEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |     @ApiOperation(value = "完善信息")
 |  |     @ApiOperation(value = "完善信息")
 | 
												
													
														
															|  |     public Envelop completeInfo(@ApiParam(name = "jsonData", value = "jsonData数据", required = true) @RequestParam String jsonData,
 |  |     public Envelop completeInfo(@ApiParam(name = "jsonData", value = "jsonData数据", required = true) @RequestParam String jsonData,
 | 
												
													
														
															|  |                                 @ApiParam(name = "headPortrait", value = "头像", required = false) @RequestParam MultipartFile headPortrait) throws Exception {
 |  |                                 @ApiParam(name = "headPortrait", value = "头像", required = false) @RequestParam MultipartFile headPortrait) throws Exception {
 | 
												
													
														
															|  |         return success(patientService.completePatientDetails(headPortrait,jsonData));
 |  | 
 | 
												
													
														
															|  | 
 |  |         return success(patientService.completePatientDetails(headPortrait, jsonData));
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value = BaseRequestMapping.BasePatient.sendCaptcha)
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @PostMapping(value = BaseRequestMapping.BasePatient.updateMobile)
 | 
												
													
														
															|  | 
 |  |     @ApiOperation(value = "修改手机号")
 | 
												
													
														
															|  | 
 |  |     public Envelop updateMobile(@ApiParam(name = "id", value = "居民标识", required = true) @RequestParam String id,
 | 
												
													
														
															|  | 
 |  |                                 @ApiParam(name = "newMobile", value = "新的手机号", required = true) @RequestParam String newMobile,
 | 
												
													
														
															|  | 
 |  |                                 @ApiParam(name = "captcha", value = "验证码", required = true) @RequestParam String captcha) throws Exception {
 | 
												
													
														
															|  | 
 |  |         return success(patientService.updateMobile(id, newMobile, captcha));
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @PostMapping(value = BaseRequestMapping.BasePatient.resetPassword)
 | 
												
													
														
															|  | 
 |  |     @ApiOperation(value = "设置密码")
 | 
												
													
														
															|  | 
 |  |     public Envelop updatePasswd(@ApiParam(name = "id", value = "居民标识", required = true) @RequestParam String id,
 | 
												
													
														
															|  | 
 |  |                                 @ApiParam(name = "password", value = "密码", required = true) @RequestParam String password) throws Exception {
 | 
												
													
														
															|  | 
 |  |         return success(patientService.resetPassword(id, password));
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @GetMapping(value = BaseRequestMapping.BasePatient.getCompletedInfo)
 | 
												
													
														
															|  |     @ApiOperation(value = "查询完善后信息详情")
 |  |     @ApiOperation(value = "查询完善后信息详情")
 | 
												
													
														
															|  |     public ObjEnvelop<BasePatientVO> getCompletedInfo(
 |  |     public ObjEnvelop<BasePatientVO> getCompletedInfo(
 | 
												
													
														
															|  |             @ApiParam(name = "id", value = "居民标识")
 |  |             @ApiParam(name = "id", value = "居民标识")
 | 
												
													
														
															|  |             @RequestParam(value = "id", required = true) String id) throws Exception {
 |  |             @RequestParam(value = "id", required = true) String id) throws Exception {
 | 
												
													
														
															|  |         return success(patientService.getCompletedDetails(id),BasePatientVO.class);
 |  | 
 | 
												
													
														
															|  | 
 |  |         return success(patientService.getCompletedDetails(id), BasePatientVO.class);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value = BaseRequestMapping.BasePatient.sendCaptcha)
 |  |     @GetMapping(value = BaseRequestMapping.BasePatient.sendCaptcha)
 | 
												
											
												
													
														
															|  | @ -114,7 +129,7 @@ public class PatientEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |             @RequestParam(value = "mobile", required = true) String mobile,
 |  |             @RequestParam(value = "mobile", required = true) String mobile,
 | 
												
													
														
															|  |             @ApiParam(name = "type", value = "短信验证码类型", required = true)
 |  |             @ApiParam(name = "type", value = "短信验证码类型", required = true)
 | 
												
													
														
															|  |             @RequestParam(value = "type") SmsTemplateDO.Type type) throws Exception {
 |  |             @RequestParam(value = "type") SmsTemplateDO.Type type) throws Exception {
 | 
												
													
														
															|  |         SmsDO smsDO = baseSmsGatewayService.send(clientId, type,mobile);
 |  | 
 | 
												
													
														
															|  | 
 |  |         SmsDO smsDO = baseSmsGatewayService.send(clientId, type, mobile);
 | 
												
													
														
															|  |         return success(smsDO, SmsVO.class);
 |  |         return success(smsDO, SmsVO.class);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 |