Skip to content

Commit

Permalink
refactor: Enum 필드에 final 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Jul 19, 2024
1 parent 295f5ca commit ceaa483
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public enum ActivityGroupBoardCategory {
ASSIGNMENT("ASSIGNMENT", "과제"),
SUBMIT("SUBMIT", "제출");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public enum ActivityGroupCategory {
STUDY("STUDY", "스터디"),
PROJECT("PROJECT", "프로젝트");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum ActivityGroupRole {
MEMBER("MEMBER", "Member"),
NONE("NONE", "None");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum ActivityGroupStatus {
PROGRESSING("ACTIVE", "활동 중"),
END("END", "활동 종료");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum GroupMemberStatus {
ACCEPTED("ACCEPTED", "수락"),
WAITING("WAITING", "승인 대기");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum AccountAccessResult {
SUCCESS("SUCCESS", "로그인 성공"),
FAILURE("FAILURE", "로그인 실패");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum AccuseStatus {
APPROVED("APPROVED", "처리 완료"),
REJECTED("REJECTED", "거부");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public enum TargetType {
BOARD("BOARD", "게시글"),
COMMENT("COMMENT", "댓글");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public enum BoardCategory {
GRADUATED("graduated", "졸업생 게시판"),
ORGANIZATION("organization", "동아리 소식");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum ApplicationType {
OPERATION("OPERATION", "운영진"),
CORE_TEAM("CORE_TEAM", "코어팀");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum RecruitmentStatus {
OPEN("OPEN", "진행중"),
CLOSED("CLOSED", "종료");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public enum BookLoanStatus {
REJECTED("REJECTED", "대출 거절"),
RETURNED("RETURNED", "반납 완료");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public enum Role {
ADMIN("ROLE_ADMIN", "Administrator"),
SUPER("ROLE_SUPER", "Super Administrator");

private String key;
private String description;
private final String key;
private final String description;

public Long toRoleLevel() {
return switch (this) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum StudentStatus {
ON_LEAVE("ON_LEAVE", "휴학생"),
GRADUATED("GRADUATED", "졸업생");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public enum PositionType {
MEMBER("MEMBER", "일반회원");

@Enumerated(EnumType.STRING)
private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public enum MembershipFeeStatus {
APPROVED("APPROVED", "승인"),
REJECTED("REJECTED", "반려");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum SchedulePriority {
MEDIUM("MEDIUM", "중간"),
LOW("LOW", "낮음");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public enum ScheduleType {
STUDY("STUDY", "스터디"),
PROJECT("PROJECT", "프로젝트");

private String key;
private String description;
private final String key;
private final String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public enum EmailTemplateType {
NORMAL("NORMAL", "기본", "clabEmail.html");

@Enumerated(EnumType.STRING)
private String key;
private String description;
private String templateName;
private final String key;
private final String description;
private final String templateName;
}

0 comments on commit ceaa483

Please sign in to comment.