feat: friends related logic refactor

This commit is contained in:
merlin
2025-12-02 10:09:57 +08:00
parent 0ea6e13064
commit 3fce5b2f01
14 changed files with 353 additions and 11 deletions

View File

@@ -76,7 +76,7 @@ public class JwtUtil {
private Claims getClaims(String token) {
try {
Jws<Claims> jws = jwtParser.parseSignedClaims(token);
System.out.println(jws.getPayload());
// System.out.println(jws.getPayload());
return jws.getPayload();
} catch (ExpiredJwtException e) {
throw new TokenExpiredException("Token 已过期", e);

View File

@@ -45,7 +45,13 @@ public enum ResultCode {
MAIL_VERIFY_CODE_ERROR("4106","验证码错误,请重新输入"),
//审核相关
AUDIT_NO_RECORD("4201","无审核记录条目");
AUDIT_NO_RECORD("4201","无审核记录条目"),
//邀请相关
INVITING_REQUEST_ERROR("4301","邀请请求错误"),
INVITING_ILLEGAL_REQUEST("4302","非法邀请"),
INVITING_ILLEGAL_RESPONSE("4303","非法邀请");