File tree Expand file tree Collapse file tree
src/main/java/ceos/backend/domain/retrospect/dto/response Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ public class GetRetrospectResponse {
1010 private String title ;
1111 private String url ;
1212 private String writer ;
13+ private Integer generation ;
14+ private String part ;
1315
1416 public static GetRetrospectResponse fromEntity (Retrospect retrospect ) {
1517 GetRetrospectResponse getRetrospectResponse = new GetRetrospectResponse ();
@@ -18,6 +20,8 @@ public static GetRetrospectResponse fromEntity(Retrospect retrospect) {
1820 getRetrospectResponse .setTitle (retrospect .getTitle ());
1921 getRetrospectResponse .setUrl (retrospect .getUrl ());
2022 getRetrospectResponse .setWriter (retrospect .getWriter ());
23+ getRetrospectResponse .setGeneration (retrospect .getGeneration ());
24+ getRetrospectResponse .setPart (retrospect .getPart ().getPart ());
2125
2226 return getRetrospectResponse ;
2327 }
Original file line number Diff line number Diff line change 1010public class GetRetrospectsElement {
1111 private Long id ;
1212 private String title ;
13- private String url ;
14- private String writer ;
1513 private Integer generation ;
14+ private String part ;
1615
1716 public static GetRetrospectsElement fromEntity (Retrospect retrospect ) {
1817 return new GetRetrospectsElement (
1918 retrospect .getId (),
2019 retrospect .getTitle (),
21- retrospect .getUrl (),
22- retrospect .getWriter (),
23- retrospect .getGeneration ());
20+ retrospect .getGeneration (),
21+ retrospect .getPart ().getPart ());
2422 }
2523}
You can’t perform that action at this time.
0 commit comments