Skip to content

Commit

Permalink
[feature/#308] 장학회 dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
whitem4rk committed Jun 17, 2024
1 parent c2f2e81 commit a379f76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
// 후원 내용
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand All @@ -39,15 +41,13 @@ 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);
this.dateHistory = dateHistory;
}

/* getter */

public String getContent() {
return content.getValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a379f76

Please sign in to comment.