Skip to content

Commit

Permalink
[refactor] enum 정리
Browse files Browse the repository at this point in the history
- enum 클래스를 저희가 정한 컨벤션대로 수정했습니다.
  • Loading branch information
JungYoonShin committed Dec 25, 2024
1 parent 02e9abd commit c84bce6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.favoriteplace.app.domain.enums;

public enum CommentType {
PARENT_COMMENT, CHILD_COMMENT
PARENT_COMMENT, CHILD_COMMENT;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
public enum ItemCategory {
NEW(0, "New!"),
UMC(1, "UMC"),
NORMAL(2, "Normal");
NORMAL(2, "Normal"),
;

private final Integer num;
private final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@RequiredArgsConstructor
public enum ItemType {
ICON(0, "아이콘"),
TITLE(1, "칭호");
TITLE(1, "칭호"),
;

private final Integer num;
private final String description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public enum LoginType {
SELF(0, "자체"),
GOOGLE(1, "구글"),
KAKAO(2, "카카오"),
NAVER(3, "네이버");
NAVER(3, "네이버"),
;

private final Integer value;
private final String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@RequiredArgsConstructor
public enum MemberStatus {
Y(0, "활성화"),
N(1, "비활성화");
N(1, "비활성화"),
;

private final Integer value;
private final String status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
@RequiredArgsConstructor
public enum PointType {
ACQUIRE(0, "포인트 획득"),
SPEND(1, "포인트 소비");
SPEND(1, "포인트 소비"),
;

private final Integer num;
private final String description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@Getter
@RequiredArgsConstructor
public enum RallyVersion {
v1("BETA 1.0");
v1("BETA 1.0"),
;
private final String version;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public enum SaleStatus {
FOR_SALE(0, "파는 상품"),
NOT_FOR_SALE(1, "팔지 않는 상품"),
LIMITED_SALE(2, "한정 판매 상품"),
ALWAYS_ON_SALE(3, "상시 판매 상품");
ALWAYS_ON_SALE(3, "상시 판매 상품"),
;

private final Integer num;
private final String description;
Expand Down

0 comments on commit c84bce6

Please sign in to comment.