-
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 구현 (#229)
* [feat] make response, command dto * [feat] implementing repository func * [feat] implementing controller func * [feat] Add Exception Handling * [refac] Remove Unnecessary Code
- Loading branch information
1 parent
c833c74
commit 38b8525
Showing
6 changed files
with
42 additions
and
3 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
10 changes: 10 additions & 0 deletions
10
...ava/org/hankki/hankkiserver/api/favorite/service/command/FavoriteOwnershipGetCommand.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,10 @@ | ||
package org.hankki.hankkiserver.api.favorite.service.command; | ||
|
||
public record FavoriteOwnershipGetCommand( | ||
long userId, | ||
long favoriteId | ||
) { | ||
public static FavoriteOwnershipGetCommand of(final long userId, final long favoriteId) { | ||
return new FavoriteOwnershipGetCommand(userId, favoriteId); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...a/org/hankki/hankkiserver/api/favorite/service/response/FavoriteOwnershipGetResponse.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 org.hankki.hankkiserver.api.favorite.service.response; | ||
|
||
public record FavoriteOwnershipGetResponse( | ||
boolean isOwner | ||
) { | ||
public static FavoriteOwnershipGetResponse of(final boolean isOwner) { | ||
return new FavoriteOwnershipGetResponse(isOwner); | ||
} | ||
} |
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