Parcourir la source

fix: 添加@RequestBody注解

fangxinjian il y a 4 ans
Parent
commit
b707e3cee4

+ 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);
     }
 }