Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
L-U-Ready committed Nov 26, 2024
2 parents 3f65d42 + d6f494d commit 354ae95
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ReportArticleUpdateRequest {
private String keyword;

@NotBlank(message = "기사 제목은 필수입니다.")
private String articleTitle;
private String headLine;

@NotBlank(message = "url은 필수입니다.")
private String url;
Expand All @@ -29,40 +29,40 @@ public class ReportArticleUpdateRequest {
private String publishedDate;

@NotBlank(message = "미디어는 필수입니다.")
private String publisherName;
private String media;

@NotBlank(message = "기자명은 필수입니다.")
private String reporterName;
private String reporter;


@Builder
public ReportArticleUpdateRequest(String categoryType,
String keyword,
String articleTitle,
String headLine,
String url,
String publishedDate,
String publisherName,
String reporterName) {
String media,
String reporter) {

this.categoryType = categoryType;
this.keyword = keyword;
this.articleTitle = articleTitle;
this.headLine = headLine;
this.url = url;
this.publishedDate = publishedDate;
this.publisherName = publisherName;
this.reporterName = reporterName;
this.media = media;
this.reporter = reporter;

}

public ReportArticle toEntity(ReportCategory reportCategory) {
return ReportArticle.builder()
.categoryType(CategoryType.valueOf(categoryType))
.title(articleTitle)
.title(headLine)
.keyword(keyword)
.url(url)
.publishDate(publishedDate)
.publisherName(publisherName)
.reporterName(reporterName)
.publisherName(media)
.reporterName(reporter)
.reportCategory(reportCategory)
.build();
}
Expand Down

0 comments on commit 354ae95

Please sign in to comment.