Skip to content

Commit

Permalink
fix : Question Category update
Browse files Browse the repository at this point in the history
  • Loading branch information
xonmin committed Jul 1, 2024
1 parent 2a2e497 commit 94e5360
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions service/src/main/kotlin/com/mashup/dojo/domain/Question.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ enum class QuestionType {
ACCOMPANY,
}

// todo : category 상세 기획에 따라 변경 가능 (현재 임시)
// 카테고리에 따라 emojiImageId 가 결정
enum class QuestionCategory {
ROMANCE,
WORK,
FUN,
PERSONALITY,
enum class QuestionCategory(
private val value: String
) {
DATING("연애"),
FRIENDSHIP("사교"),
PERSONALITY("성격"),
ENTERTAINMENT("유흥"),
FITNESS("체력"),
APPEARANCE("외모"),
WORK("작업"),
HUMOR("유머"),
OTHER("기타"),
}

@JvmInline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DefaultQuestionService : QuestionService {
id = QuestionId("1234564"),
content = "세상에서 제일 멋쟁이인 사람",
type = QuestionType.FRIEND,
category = QuestionCategory.ROMANCE,
category = QuestionCategory.DATING,
emojiImageId = ImageId("345678"),
createdAt = LocalDateTime.now(),
deletedAt = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DefaultSheetUseCase(
QuestionId("1"),
"여기서 술을 제일 잘 먹을 것 같은 사람은?",
QuestionType.FRIEND,
QuestionCategory.FUN,
QuestionCategory.ENTERTAINMENT,
mockEmojiImage.id,
LocalDateTime.now(),
LocalDateTime.now()
Expand Down

0 comments on commit 94e5360

Please sign in to comment.