|
@@ -46,7 +46,7 @@ public class LoginController {
|
|
|
|
|
|
@ApiOperation("重置密码")
|
|
@ApiOperation("重置密码")
|
|
@PostMapping("resetPassword")
|
|
@PostMapping("resetPassword")
|
|
- public BaseResponse resetPassword(@Validated ResetPasswordReq req) throws Exception {
|
|
|
|
|
|
+ public BaseResponse resetPassword(@Validated @RequestBody ResetPasswordReq req) throws Exception {
|
|
loginService.resetPassword(req);
|
|
loginService.resetPassword(req);
|
|
//包装出参
|
|
//包装出参
|
|
return BaseResponse.create();
|
|
return BaseResponse.create();
|
|
@@ -54,7 +54,7 @@ public class LoginController {
|
|
|
|
|
|
@ApiOperation("修改密码")
|
|
@ApiOperation("修改密码")
|
|
@PostMapping("updatePassword")
|
|
@PostMapping("updatePassword")
|
|
- public BaseResponse updatePassword(@Validated UpdatePasswordReq req) throws Exception {
|
|
|
|
|
|
+ public BaseResponse updatePassword(@Validated @RequestBody UpdatePasswordReq req) throws Exception {
|
|
return loginService.updatePassword(req);
|
|
return loginService.updatePassword(req);
|
|
}
|
|
}
|
|
}
|
|
}
|