-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: MemberRelation 필드 source terget으로 변경 * feat: 나와 타인의 팔로우/팔로잉 카운트 조회 구현 * refactor: MethodArgumentTypeMismatchException Exception 주석과 에러내용 변경 * test: 나와 타인의 팔로우/팔로잉 카운트 조회 테스트코드 작성 * refactor: FollowStatus value 변경 * fix: enum 응답 값 JsonFormat 삭제
- Loading branch information
Showing
11 changed files
with
340 additions
and
20 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
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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/depromeet/domain/follow/dto/response/FollowFindMeInfoResponse.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,7 @@ | ||
package com.depromeet.domain.follow.dto.response; | ||
|
||
public record FollowFindMeInfoResponse(Long followingCount, Long followerCount) { | ||
public static FollowFindMeInfoResponse of(Long followingCount, Long followerCount) { | ||
return new FollowFindMeInfoResponse(followingCount, followerCount); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/depromeet/domain/follow/dto/response/FollowFindTargetInfoResponse.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,9 @@ | ||
package com.depromeet.domain.follow.dto.response; | ||
|
||
public record FollowFindTargetInfoResponse( | ||
Long followingCount, Long followerCount, FollowStatus followStatus) { | ||
public static FollowFindTargetInfoResponse of( | ||
Long followingCount, Long followerCount, FollowStatus followStatus) { | ||
return new FollowFindTargetInfoResponse(followingCount, followerCount, followStatus); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/depromeet/domain/follow/dto/response/FollowStatus.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,15 @@ | ||
package com.depromeet.domain.follow.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum FollowStatus { | ||
FOLLOWING("팔로잉"), // A가 이미 B를 팔로우 중일때 (팔로우 취소) | ||
FOLLOWED_BY_ME("맞팔로우"), // B가 A를 팔로우 중일때 (맞팔로우) | ||
NOT_FOLLOWING("팔로우"), // A가 B를 팔로우하지 않고, B도 A를 팔로우하지 않을 때 (팔로우 추가) | ||
; | ||
|
||
private final String value; | ||
} |
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
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.