|
@@ -224,4 +224,22 @@ public class MiniUserController {
|
|
return ResponseHelper.success();
|
|
return ResponseHelper.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("/password/update")
|
|
|
|
+ @Operation(summary = "修改密码")
|
|
|
|
+ public ResponseHelper<AdminUserBean> login(
|
|
|
|
+ @Parameter(description = "帐号", required = true) @RequestParam String userName,
|
|
|
|
+ @Parameter(description = "密码", required = true) @RequestParam String password,
|
|
|
|
+ @Parameter(description = "新密码", required = true) @RequestParam String newPassword
|
|
|
|
+ ) throws RemoteServiceException {
|
|
|
|
+ adminUserLogic.updatePassword(userName, password, newPassword);
|
|
|
|
+ return ResponseHelper.success();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @GetMapping("/detail")
|
|
|
|
+ @Operation(summary = "详情")
|
|
|
|
+ public ResponseHelper<AdminUserBean> miniDetail() throws RemoteServiceException {
|
|
|
|
+ AdminUserBean detail = adminUserLogic.miniDetail();
|
|
|
|
+ return ResponseHelper.success(detail);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|