新账号注销提示

This commit is contained in:
tianfeng 2026-01-23 14:46:05 +08:00
parent e5ee364c9a
commit b7671d5963
2 changed files with 6 additions and 1 deletions

View File

@ -229,6 +229,11 @@ public enum UserErrorCode implements IResponseErrorCode {
*/
BLACK_USER(4076, "The current user has been blocked and cannot follow."),
/**
* 账号已注销
*/
ACCOUNT_LOGOUT(4077, "Account has been deactivated"),
;

View File

@ -390,7 +390,7 @@ public class UserAccountClientServiceImpl implements UserAccountClientService {
// 注册黑名单
if (Objects.equals(userProfile.getDel(), Boolean.TRUE)) {
ResponseAssert.failure(UserErrorCode.REGISTER_BLACKLIST);
ResponseAssert.failure(UserErrorCode.ACCOUNT_LOGOUT);
}
// 检查账号是否被封禁