diff --git a/resource-server/src/main/java/com/inhabas/api/domain/menu/domain/valueObject/MenuType.java b/resource-server/src/main/java/com/inhabas/api/domain/menu/domain/valueObject/MenuType.java index 7f3c0ac7..462086a7 100644 --- a/resource-server/src/main/java/com/inhabas/api/domain/menu/domain/valueObject/MenuType.java +++ b/resource-server/src/main/java/com/inhabas/api/domain/menu/domain/valueObject/MenuType.java @@ -45,9 +45,9 @@ public enum MenuType { // 베타테스터 BETA(DEACTIVATED, BASIC, DEACTIVATED, DEACTIVATED, DEACTIVATED), // 공모전 - CONTEST(ANONYMOUS, BASIC, ANONYMOUS, DEACTIVATED, BASIC), + CONTEST(ANONYMOUS, BASIC, ANONYMOUS, DEACTIVATED, ANONYMOUS), // 대외활동 - ACTIVITY(ANONYMOUS, BASIC, ANONYMOUS, DEACTIVATED, BASIC), + ACTIVITY(ANONYMOUS, BASIC, ANONYMOUS, DEACTIVATED, ANONYMOUS), // 장학회 SCHOLARSHIP(ANONYMOUS, SECRETARY, ANONYMOUS, ADMIN, ADMIN), // 후원 내용 diff --git a/resource-server/src/main/java/com/inhabas/api/domain/scholarship/domain/Scholarship.java b/resource-server/src/main/java/com/inhabas/api/domain/scholarship/domain/Scholarship.java index 0413f19d..d3956cdd 100644 --- a/resource-server/src/main/java/com/inhabas/api/domain/scholarship/domain/Scholarship.java +++ b/resource-server/src/main/java/com/inhabas/api/domain/scholarship/domain/Scholarship.java @@ -15,6 +15,7 @@ import javax.persistence.Table; import lombok.AccessLevel; +import lombok.Getter; import lombok.NoArgsConstructor; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -25,6 +26,7 @@ import com.inhabas.api.domain.file.domain.BoardFile; import com.inhabas.api.domain.menu.domain.Menu; +@Getter @Entity @Table(name = "SCHOLARSHIP_BOARD") @NoArgsConstructor(access = AccessLevel.PROTECTED) @@ -39,7 +41,6 @@ public class Scholarship extends BaseBoard { private LocalDateTime dateHistory; /* constructor */ - public Scholarship(String title, Menu menu, String content, LocalDateTime dateHistory) { super(title, menu); this.content = new Content(content); @@ -47,7 +48,6 @@ public Scholarship(String title, Menu menu, String content, LocalDateTime dateHi } /* getter */ - public String getContent() { return content.getValue(); } diff --git a/resource-server/src/main/java/com/inhabas/api/domain/scholarship/usecase/ScholarshipBoardServiceImpl.java b/resource-server/src/main/java/com/inhabas/api/domain/scholarship/usecase/ScholarshipBoardServiceImpl.java index b868a4d0..9ea6bcb1 100644 --- a/resource-server/src/main/java/com/inhabas/api/domain/scholarship/usecase/ScholarshipBoardServiceImpl.java +++ b/resource-server/src/main/java/com/inhabas/api/domain/scholarship/usecase/ScholarshipBoardServiceImpl.java @@ -62,6 +62,7 @@ public ScholarshipBoardDetailDto getPost(ScholarshipBoardType boardType, Long bo .title(scholarship.getTitle()) .content(scholarship.getContent()) .writer(scholarship.getWriter()) + .dateHistory(scholarship.getDateHistory()) .dateCreated(scholarship.getDateCreated()) .dateUpdated(scholarship.getDateUpdated()) .images(classifiedFiles.getImages())