Skip to content

Commit

Permalink
feat(Notice): updatedDate와 important 필드 getter 제공
Browse files Browse the repository at this point in the history
  • Loading branch information
zbqmgldjfh committed Jan 14, 2024
1 parent 36f8d41 commit a46c2e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/kustacks/kuring/notice/domain/Notice.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class Notice {
@Column(name = "posted_dt", length = 32, nullable = false)
private String postedDate;

@Getter(AccessLevel.PUBLIC)
@Column(name = "updated_dt", length = 32)
private String updatedDate;

Expand Down Expand Up @@ -55,6 +56,9 @@ public Notice(String articleId, String postedDate, String updatedDate,
this.url = new Url(fullUrl);
}

public Boolean isImportant() {
return this.important;
}
public String getCategoryName() {
return this.categoryName.getName();
}
Expand Down

0 comments on commit a46c2e6

Please sign in to comment.