diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java index e6fba180..d9bdf03f 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java @@ -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"), + ; diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java index 91578f7f..47a6a492 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java @@ -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); } // 检查账号是否被封禁