Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 북토크 상세정보 조회시 사전 준비사항 정보 text 한글로 나오게 변경 #108

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.sophy.sophy.domain.Booktalk;
import org.sophy.sophy.domain.enumerate.BookCategory;
import org.sophy.sophy.domain.enumerate.BooktalkStatus;
import org.sophy.sophy.domain.enumerate.PreliminaryInfo;

@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
Expand All @@ -22,7 +21,7 @@ public class BooktalkDetailResponseDto {
private LocalDateTime endDate;
private Integer participant;
private Integer participationFee;
private PreliminaryInfo preliminaryInfo;
private String preliminaryInfo;
private String description;
private String PlaceName;
private String PlaceAddress;
Expand All @@ -40,7 +39,7 @@ public static BooktalkDetailResponseDto of(Booktalk booktalk, Boolean isApply) {
booktalk.getEndDate(),
booktalk.getParticipantNum(),
booktalk.getParticipationFee(),
booktalk.getPreliminaryInfo(),
booktalk.getPreliminaryInfo().getDescription(),
booktalk.getDescription(),
booktalk.getPlace().getName(),
booktalk.getPlace().getAddress(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
package org.sophy.sophy.domain.enumerate;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum PreliminaryInfo {
//미리 읽어와주세요 / 발췌문을 드려요 / 편하게와주세요 / 질문을 준비해주세요
PRE_READING,
PROVIDE_EXCERPT,
COMFORTABLE_COMING,
PREPARE_QUESTION
PRE_READING("미리 읽어와주세요"),
PROVIDE_EXCERPT("발췌문을 드려요"),
COMFORTABLE_COMING("편하게 와주세요"),
PREPARE_QUESTION("질문을 준비해주세요")
;

private final String description;
}