Skip to content

Commit

Permalink
#5 #24 feat: Apple Refreshtoken 예외 클래스 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Nov 24, 2022
1 parent 64f6936 commit 616f7a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ public class CreateCommentReq {
@ApiParam(value = "클립보드 상세 내용", required = true)
@NotBlank
private String content;

@ApiModelProperty(example = "입력 예정")
@ApiParam(value = "애플 refresh token", required = true)
@NotBlank
private String refreshToken;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.yogit.server.board.repository.CommentRepository;
import com.yogit.server.global.dto.ApplicationResponse;
import com.yogit.server.user.entity.User;
import com.yogit.server.user.exception.InvalidTokenException;
import com.yogit.server.user.exception.NotFoundUserException;
import com.yogit.server.user.repository.UserRepository;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.yogit.server.user.exception;

public class InvalidTokenException extends UserException{
public InvalidTokenException(){
super(UserExceptionList.INVALID_TOKEN.getCODE(), UserExceptionList.INVALID_TOKEN.getHTTPSTATUS(), UserExceptionList.INVALID_TOKEN.getMESSAGE());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public enum UserExceptionList {
NOT_FOUND_ID("U0001", NOT_FOUND,"존재하지 않는 아이디입니다."),
DUPLICATE_LOGIN_ID("U0002", CONFLICT,"이미 존재하는 아이디입니다."),
NOT_FOUND_PROFILE_IMG("U0003", NOT_FOUND, "프로필 사진은 필수 값 입니다."),
NOT_UNSUITABLE_GENDER("U0004", BAD_REQUEST, "올바르지 않은 성별 값 입니다.");
NOT_UNSUITABLE_GENDER("U0004", BAD_REQUEST, "올바르지 않은 성별 값 입니다."),
INVALID_TOKEN("U0005", BAD_REQUEST, "올바르지 않은 토큰입니다.");

private final String CODE;
private final HttpStatus HTTPSTATUS;
Expand Down

0 comments on commit 616f7a0

Please sign in to comment.