Skip to content

Commit

Permalink
Merge branch 'dev-be' into feat/76-read-checklist-questions
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-jisong authored Jul 25, 2024
2 parents bd3d8d6 + 3b5c9cd commit a1e26f1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.bang_ggood.category.domain;

public enum Badge {

CLEAN("청결", "청결해요", "✨"),
ROOM_CONDITION("방 컨디션", "방 컨디션이 좋아요", "🏠"),
AMENITY("편의시설", "편의시설이 많아요", "🚇"),
OPTION("옵션", "옵션이 많아요", "🛋️"),
ENVIRONMENT("주거환경", "주거환경이 좋아요", "🌱"),
SECURITY("보안", "안전해요", "🔒"),
ECONOMIC("경제적", "경제적이에요", "💰")
;

private final String shortDescription;
private final String longDescription;
private final String emoji;

Badge(String shortDescription, String longDescription, String emoji) {
this.shortDescription = shortDescription;
this.longDescription = longDescription;
this.emoji = emoji;
}

public String getShortDescriptionWithEmoji() {
return this.emoji + this.shortDescription;
}

public String getLongDescriptionWithEmoji() {
return this.emoji + this.longDescription;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@

public enum Category {

CLEAN(1, "청결", new LinkedHashSet<>(Set.of(1, 2, 3, 4, 5))),
ROOM_CONDITION(2, "방 컨디션", new LinkedHashSet<>(Set.of(6, 7, 8, 9, 10, 11))),
AMENITY(3, "편의시설", new LinkedHashSet<>(Set.of(12, 13, 14))),
OPTION(4, "옵션", new LinkedHashSet<>(Set.of(15, 16))),
ENVIRONMENT(5, "주거환경", new LinkedHashSet<>(Set.of(17, 18, 19, 20, 21, 22))),
SECURITY(6, "보안", new LinkedHashSet<>(Set.of(22, 23, 24, 25, 26, 27, 28, 29, 30))),
ECONOMIC(7, "경제적", new LinkedHashSet<>(Set.of(31, 32)));
CLEAN(1, "청결", Badge.CLEAN, new LinkedHashSet<>(Set.of(1, 2, 3, 4, 5))),
ROOM_CONDITION(2, "방 컨디션", Badge.ROOM_CONDITION, new LinkedHashSet<>(Set.of(6, 7, 8, 9, 10, 11))),
AMENITY(3, "편의시설", Badge.AMENITY, new LinkedHashSet<>(Set.of(12, 13, 14))),
OPTION(4, "옵션", Badge.OPTION, new LinkedHashSet<>(Set.of(15, 16))),
ENVIRONMENT(5, "주거환경", Badge.ENVIRONMENT, new LinkedHashSet<>(Set.of(17, 18, 19, 20, 21, 22))),
SECURITY(6, "보안", Badge.SECURITY, new LinkedHashSet<>(Set.of(22, 23, 24, 25, 26, 27, 28, 29, 30))),
ECONOMIC(7, "경제적", Badge.ECONOMIC, new LinkedHashSet<>(Set.of(31, 32)));

private final int id;
private final String description;
private final Badge badge;
private final Set<Integer> questionIds;

Category(int id, String description, Set<Integer> questionIds) {
Category(int id, String description, Badge badge, Set<Integer> questionIds) {
this.id = id;
this.description = description;
this.badge = badge;
this.questionIds = questionIds;
}

Expand Down

0 comments on commit a1e26f1

Please sign in to comment.