-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Feat]: 공유 수락 API 구현 공유 수락 API 구현 Related to: #40 * [Update]: 공유 요청 및 수락 예외처리 추가 5명 초과 시 예외처리 추가 Related to: #40 * [Update]: UserServiceUtil 적용 UserServiceUtil 적용 Related to: #40 * [Update]: RequestBody로 변경 RequestParam에서 RequestBody로 변경 Related to: #40
- Loading branch information
Showing
11 changed files
with
196 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
|
||
public interface FriendRepository extends JpaRepository<Friend, Long> { | ||
|
||
Integer countBySenderId(Long senderId); | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/io/sobok/SobokSobok/friend/ui/dto/AddFriendRequest.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,12 @@ | ||
package io.sobok.SobokSobok.friend.ui.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record AddFriendRequest( | ||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
Long memberId, | ||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
String friendName | ||
) { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/io/sobok/SobokSobok/friend/ui/dto/HandleFriendRequest.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,11 @@ | ||
package io.sobok.SobokSobok.friend.ui.dto; | ||
|
||
import io.sobok.SobokSobok.notice.domain.NoticeStatus; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record HandleFriendRequest( | ||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
NoticeStatus isOkay | ||
) { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/io/sobok/SobokSobok/friend/ui/dto/HandleFriendRequestResponse.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 io.sobok.SobokSobok.friend.ui.dto; | ||
|
||
import io.sobok.SobokSobok.notice.domain.NoticeStatus; | ||
import java.time.LocalDateTime; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record HandleFriendRequestResponse( | ||
Long noticeId, | ||
String memberName, | ||
NoticeStatus isOkay, | ||
LocalDateTime updatedAt | ||
) { | ||
|
||
} |
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.