소스 검색

fix: 添加@RequestBody注解

fangxinjian 4 년 전
부모
커밋
b707e3cee4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/controller/console/LoginController.java

+ 2 - 2
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/controller/console/LoginController.java

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