mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 19:00:53 +08:00
refactor: 移除所有的 @Accessors(chain = true),并全局配置禁止使用
This commit is contained in:
@@ -79,7 +79,7 @@ public class LoginController {
|
||||
ExceptionUtils.exToNull(() -> SecureUtils.decryptByRsaPrivateKey(loginRequest.getPassword()));
|
||||
ValidationUtils.throwIfBlank(rawPassword, "密码解密失败");
|
||||
String token = loginService.login(loginRequest.getUsername(), rawPassword);
|
||||
return R.ok(new LoginVO().setToken(token));
|
||||
return R.ok(LoginVO.builder().token(token).build());
|
||||
}
|
||||
|
||||
@SaIgnore
|
||||
|
@@ -79,10 +79,7 @@ public class CaptchaController {
|
||||
String captchaKey = RedisUtils.formatKey(CacheConsts.CAPTCHA_KEY_PREFIX, uuid);
|
||||
RedisUtils.setCacheObject(captchaKey, captcha.text(),
|
||||
Duration.ofMinutes(captchaImage.getExpirationInMinutes()));
|
||||
|
||||
// 返回验证码
|
||||
CaptchaVO captchaVO = new CaptchaVO().setUuid(uuid).setImg(captcha.toBase64());
|
||||
return R.ok(captchaVO);
|
||||
return R.ok(CaptchaVO.builder().uuid(uuid).img(captcha.toBase64()).build());
|
||||
}
|
||||
|
||||
@Operation(summary = "获取邮箱验证码", description = "发送验证码到指定邮箱")
|
||||
|
@@ -65,7 +65,7 @@ public class UserCenterController {
|
||||
|
||||
// 上传头像
|
||||
String newAvatar = userService.uploadAvatar(avatarFile, LoginHelper.getUserId());
|
||||
return R.ok("上传成功", new AvatarVO().setAvatar(newAvatar));
|
||||
return R.ok("上传成功", AvatarVO.builder().avatar(newAvatar).build());
|
||||
}
|
||||
|
||||
@Operation(summary = "修改基础信息", description = "修改用户基础信息")
|
||||
|
Reference in New Issue
Block a user