|
@@ -1,6 +1,7 @@
|
|
package com.diagbot.web;
|
|
package com.diagbot.web;
|
|
|
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
|
+import com.diagbot.dto.ImgVerCreatDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.facade.VerFacade;
|
|
import com.diagbot.facade.VerFacade;
|
|
import com.diagbot.vo.ImgVerVerVO;
|
|
import com.diagbot.vo.ImgVerVerVO;
|
|
@@ -33,7 +34,7 @@ public class VerController {
|
|
@ApiOperation(value = "获取图片验证码", notes = "获取图片验证码包括图片验证码唯一标志和图片信息")
|
|
@ApiOperation(value = "获取图片验证码", notes = "获取图片验证码包括图片验证码唯一标志和图片信息")
|
|
@PostMapping("/getImgVerification")
|
|
@PostMapping("/getImgVerification")
|
|
@SysLogger("getImgVerification")
|
|
@SysLogger("getImgVerification")
|
|
- public RespDTO getImgVerification(){
|
|
|
|
|
|
+ public RespDTO<ImgVerCreatDTO> getImgVerification(){
|
|
return RespDTO.onSuc(verFacade.getImgVerification());
|
|
return RespDTO.onSuc(verFacade.getImgVerification());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -45,7 +46,7 @@ public class VerController {
|
|
@ApiOperation(value = "验证图片验证码", notes = "图片验证码唯一标志后和验证码不能为空")
|
|
@ApiOperation(value = "验证图片验证码", notes = "图片验证码唯一标志后和验证码不能为空")
|
|
@PostMapping("/verifyImgVerification")
|
|
@PostMapping("/verifyImgVerification")
|
|
@SysLogger("verifyImgVerification")
|
|
@SysLogger("verifyImgVerification")
|
|
- public RespDTO verImgVerification(@RequestBody @Valid ImgVerVerVO imgVerVerVO){
|
|
|
|
|
|
+ public RespDTO<Boolean> verImgVerification(@RequestBody @Valid ImgVerVerVO imgVerVerVO){
|
|
return RespDTO.onSuc(verFacade.verifyImgVerification(imgVerVerVO));
|
|
return RespDTO.onSuc(verFacade.verifyImgVerification(imgVerVerVO));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -57,7 +58,7 @@ public class VerController {
|
|
@ApiOperation(value = "注册获取短信验证码", notes = "图片验证码唯一标志后,图形验证码,用户号码不能为空")
|
|
@ApiOperation(value = "注册获取短信验证码", notes = "图片验证码唯一标志后,图形验证码,用户号码不能为空")
|
|
@PostMapping("/getSmsWithRegister")
|
|
@PostMapping("/getSmsWithRegister")
|
|
@SysLogger("getSmsWithRegister")
|
|
@SysLogger("getSmsWithRegister")
|
|
- public RespDTO getSmsWithRegister(@RequestBody @Valid SmsVerCreatVO smsVerCreatVO){
|
|
|
|
|
|
+ public RespDTO<Boolean> getSmsWithRegister(@RequestBody @Valid SmsVerCreatVO smsVerCreatVO){
|
|
return RespDTO.onSuc(verFacade.getSmsVerification(smsVerCreatVO));
|
|
return RespDTO.onSuc(verFacade.getSmsVerification(smsVerCreatVO));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -69,7 +70,7 @@ public class VerController {
|
|
@ApiOperation(value = "验证短信验证码", notes = "用户号码,用户验证码不能为空")
|
|
@ApiOperation(value = "验证短信验证码", notes = "用户号码,用户验证码不能为空")
|
|
@PostMapping("/verifySmsVerification")
|
|
@PostMapping("/verifySmsVerification")
|
|
@SysLogger("verifySmsVerification")
|
|
@SysLogger("verifySmsVerification")
|
|
- public RespDTO verifySmsVerification(@RequestBody SmsVerVerVO smsVerVerVO){
|
|
|
|
|
|
+ public RespDTO<Boolean> verifySmsVerification(@RequestBody SmsVerVerVO smsVerVerVO){
|
|
return RespDTO.onSuc(verFacade.verifySmsVerification(smsVerVerVO));
|
|
return RespDTO.onSuc(verFacade.verifySmsVerification(smsVerVerVO));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,7 +83,7 @@ public class VerController {
|
|
@ApiOperation(value = "忘记密码获取短信验证码", notes = "用户号码不能为空")
|
|
@ApiOperation(value = "忘记密码获取短信验证码", notes = "用户号码不能为空")
|
|
@PostMapping("/getSmsWithResetPassword")
|
|
@PostMapping("/getSmsWithResetPassword")
|
|
@SysLogger("getSmsWithResetPassword")
|
|
@SysLogger("getSmsWithResetPassword")
|
|
- public RespDTO getSmsWithResetPassword(@RequestBody @Valid SmsVerCreatVO smsVerCreatVO){
|
|
|
|
|
|
+ public RespDTO<Boolean> getSmsWithResetPassword(@RequestBody @Valid SmsVerCreatVO smsVerCreatVO){
|
|
return RespDTO.onSuc(verFacade.getSmsWithResetPassword(smsVerCreatVO));
|
|
return RespDTO.onSuc(verFacade.getSmsWithResetPassword(smsVerCreatVO));
|
|
}
|
|
}
|
|
|
|
|