-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupBaseResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.postsquad.scoup.web.group.controller.response; | ||
|
||
import com.postsquad.scoup.web.image.controller.ImageResponse; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
public class GroupBaseResponse { | ||
|
||
private Long id; | ||
|
||
// TODO: 필요한지 확인 필요 | ||
private ImageResponse image; | ||
|
||
// TODO: 필요한지 확인 필요 | ||
private long memberCount; | ||
|
||
private String name; | ||
|
||
private String description; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupReadAllResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.postsquad.scoup.web.group.controller.response; | ||
|
||
import com.postsquad.scoup.web.group.domain.Group; | ||
import lombok.*; | ||
|
||
@EqualsAndHashCode(callSuper = false) | ||
@AllArgsConstructor | ||
@Data | ||
public class GroupReadAllResponse extends GroupBaseResponse { | ||
|
||
@Builder | ||
protected GroupReadAllResponse(Long id, String name, String description) { | ||
super(id, name, description); | ||
} | ||
|
||
public static GroupReadAllResponse from(Group group) { | ||
return new GroupReadAllResponse(group.getId(), group.getName(), group.getDescription()); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupReadAllResponses.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.postsquad.scoup.web.group.controller.response; | ||
|
||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor(staticName = "from") | ||
@Builder | ||
@Data | ||
public class GroupReadAllResponses { | ||
|
||
private List<GroupReadAllResponse> groupReadAllResponse; | ||
} |
7 changes: 0 additions & 7 deletions
7
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupResponse.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupResponses.java
This file was deleted.
Oops, something went wrong.