-
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.
GETP-301 feat: 피플 목록 조회 모자이크 기능 추가 (#174)
- Loading branch information
1 parent
9b56396
commit fa35933
Showing
34 changed files
with
437 additions
and
223 deletions.
There are no files selected for viewing
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
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
16 changes: 0 additions & 16 deletions
16
...ain/java/es/princip/getp/api/controller/people/query/dto/people/DetailPeopleResponse.java
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
...ain/java/es/princip/getp/api/controller/people/query/dto/people/PeopleDetailResponse.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,53 @@ | ||
package es.princip.getp.api.controller.people.query.dto.people; | ||
|
||
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import java.util.List; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.PeopleProfileDetailResponse; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.PortfolioResponse; | ||
import es.princip.getp.domain.people.model.Education; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class PeopleDetailResponse { | ||
private final Long peopleId; | ||
private final String nickname; | ||
private final String profileImageUri; | ||
private final long completedProjectsCount; | ||
private final long likesCount; | ||
@JsonInclude(NON_NULL) private final Boolean liked; | ||
private PeopleProfileDetailResponse profile; | ||
|
||
public PeopleDetailResponse( | ||
final Long peopleId, | ||
final String nickname, | ||
final String profileImageUri, | ||
final long completedProjectsCount, | ||
final long likesCount, | ||
final Boolean liked, | ||
final PeopleProfileDetailResponse profile | ||
) { | ||
this.peopleId = peopleId; | ||
this.nickname = nickname; | ||
this.profileImageUri = profileImageUri; | ||
this.completedProjectsCount = completedProjectsCount; | ||
this.likesCount = likesCount; | ||
this.liked = liked; | ||
this.profile = profile; | ||
} | ||
|
||
public PeopleDetailResponse mosaic( | ||
final String introduction, | ||
final String activityArea, | ||
final Education education, | ||
final List<String> techStacks, | ||
final List<PortfolioResponse> portfolios | ||
) { | ||
if (profile != null) { | ||
profile.mosaic(introduction, activityArea, education, techStacks, portfolios); | ||
} | ||
return this; | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
...va/es/princip/getp/api/controller/people/query/dto/people/PublicDetailPeopleResponse.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...incip/getp/api/controller/people/query/dto/peopleProfile/DetailPeopleProfileResponse.java
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
...incip/getp/api/controller/people/query/dto/peopleProfile/PeopleProfileDetailResponse.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,47 @@ | ||
package es.princip.getp.api.controller.people.query.dto.peopleProfile; | ||
|
||
import java.util.List; | ||
|
||
import es.princip.getp.domain.people.model.Education; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class PeopleProfileDetailResponse { | ||
private String introduction; | ||
private String activityArea; | ||
private Education education; | ||
private List<String> techStacks; | ||
private final List<String> hashtags; | ||
private List<PortfolioResponse> portfolios; | ||
|
||
public PeopleProfileDetailResponse( | ||
final String introduction, | ||
final String activityArea, | ||
final Education education, | ||
final List<String> techStacks, | ||
final List<String> hashtags, | ||
final List<PortfolioResponse> portfolios | ||
) { | ||
this.introduction = introduction; | ||
this.activityArea = activityArea; | ||
this.education = education; | ||
this.techStacks = techStacks; | ||
this.hashtags = hashtags; | ||
this.portfolios = portfolios; | ||
} | ||
|
||
public PeopleProfileDetailResponse mosaic( | ||
final String introduction, | ||
final String activityArea, | ||
final Education education, | ||
final List<String> techStacks, | ||
final List<PortfolioResponse> portfolios | ||
) { | ||
this.introduction = introduction; | ||
this.activityArea = activityArea; | ||
this.education = education; | ||
this.techStacks = techStacks; | ||
this.portfolios = portfolios; | ||
return this; | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
...getp/api/controller/people/query/dto/peopleProfile/PublicDetailPeopleProfileResponse.java
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
src/main/java/es/princip/getp/api/controller/project/query/dto/ProjectClientResponse.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
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
3 changes: 3 additions & 0 deletions
3
src/main/java/es/princip/getp/application/like/people/port/out/CheckPeopleLikePort.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,9 +1,12 @@ | ||
package es.princip.getp.application.like.people.port.out; | ||
|
||
import es.princip.getp.domain.member.model.Member; | ||
import es.princip.getp.domain.member.model.MemberId; | ||
import es.princip.getp.domain.people.model.PeopleId; | ||
|
||
public interface CheckPeopleLikePort { | ||
|
||
boolean existsBy(MemberId memberId, PeopleId peopleId); | ||
|
||
Boolean existsBy(Member member, PeopleId peopleId); | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/es/princip/getp/application/people/port/in/GetMyPeopleQuery.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,12 +1,12 @@ | ||
package es.princip.getp.application.people.port.in; | ||
|
||
import es.princip.getp.api.controller.people.query.dto.people.MyPeopleResponse; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.DetailPeopleProfileResponse; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.PeopleProfileDetailResponse; | ||
import es.princip.getp.domain.member.model.MemberId; | ||
|
||
public interface GetMyPeopleQuery { | ||
|
||
MyPeopleResponse getBy(MemberId memberId); | ||
|
||
DetailPeopleProfileResponse getDetailProfileBy(MemberId memberId); | ||
PeopleProfileDetailResponse getDetailProfileBy(MemberId memberId); | ||
} |
9 changes: 3 additions & 6 deletions
9
src/main/java/es/princip/getp/application/people/port/in/GetPeopleQuery.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,18 +1,15 @@ | ||
package es.princip.getp.application.people.port.in; | ||
|
||
import es.princip.getp.api.controller.people.query.dto.people.CardPeopleResponse; | ||
import es.princip.getp.api.controller.people.query.dto.people.DetailPeopleResponse; | ||
import es.princip.getp.api.controller.people.query.dto.people.PublicDetailPeopleResponse; | ||
import es.princip.getp.api.controller.people.query.dto.people.PeopleDetailResponse; | ||
import es.princip.getp.application.people.command.GetPeopleCommand; | ||
import es.princip.getp.domain.member.model.MemberId; | ||
import es.princip.getp.domain.member.model.Member; | ||
import es.princip.getp.domain.people.model.PeopleId; | ||
import org.springframework.data.domain.Page; | ||
|
||
public interface GetPeopleQuery { | ||
|
||
Page<CardPeopleResponse> getPagedCards(GetPeopleCommand command); | ||
|
||
DetailPeopleResponse getDetailBy(MemberId memberId, PeopleId peopleId); | ||
|
||
PublicDetailPeopleResponse getPublicDetailBy(PeopleId peopleId); | ||
PeopleDetailResponse getDetailBy(Member member, PeopleId peopleId); | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/es/princip/getp/application/people/port/out/FindMyPeoplePort.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,12 +1,12 @@ | ||
package es.princip.getp.application.people.port.out; | ||
|
||
import es.princip.getp.api.controller.people.query.dto.people.MyPeopleResponse; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.DetailPeopleProfileResponse; | ||
import es.princip.getp.api.controller.people.query.dto.peopleProfile.PeopleProfileDetailResponse; | ||
import es.princip.getp.domain.member.model.MemberId; | ||
|
||
public interface FindMyPeoplePort { | ||
|
||
MyPeopleResponse findBy(MemberId memberId); | ||
|
||
DetailPeopleProfileResponse findDetailProfileBy(MemberId memberId); | ||
PeopleProfileDetailResponse findDetailProfileBy(MemberId memberId); | ||
} |
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
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
Oops, something went wrong.