Skip to content

Commit

Permalink
Merge pull request #184 from CEOS-Developers/refact/retrospect
Browse files Browse the repository at this point in the history
[refact] 회고 기능 response dto 필드 정리
  • Loading branch information
letskuku authored Aug 13, 2024
2 parents d32f568 + ff28871 commit b01f13c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class GetRetrospectResponse {
private String title;
private String url;
private String writer;
private Integer generation;
private String part;

public static GetRetrospectResponse fromEntity(Retrospect retrospect) {
GetRetrospectResponse getRetrospectResponse = new GetRetrospectResponse();
Expand All @@ -18,6 +20,8 @@ public static GetRetrospectResponse fromEntity(Retrospect retrospect) {
getRetrospectResponse.setTitle(retrospect.getTitle());
getRetrospectResponse.setUrl(retrospect.getUrl());
getRetrospectResponse.setWriter(retrospect.getWriter());
getRetrospectResponse.setGeneration(retrospect.getGeneration());
getRetrospectResponse.setPart(retrospect.getPart().getPart());

return getRetrospectResponse;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
public class GetRetrospectsElement {
private Long id;
private String title;
private String url;
private String writer;
private Integer generation;
private String part;

public static GetRetrospectsElement fromEntity(Retrospect retrospect) {
return new GetRetrospectsElement(
retrospect.getId(),
retrospect.getTitle(),
retrospect.getUrl(),
retrospect.getWriter(),
retrospect.getGeneration());
retrospect.getGeneration(),
retrospect.getPart().getPart());
}
}

0 comments on commit b01f13c

Please sign in to comment.