Skip to content

Commit

Permalink
[REFACTOR] 메서드명 수정 #56
Browse files Browse the repository at this point in the history
  • Loading branch information
sunseo18 committed Jul 14, 2023
1 parent 2796438 commit eea9217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ApiResponse updateVisit(@PathVariable final Long spaceId) {
@ResponseStatus(HttpStatus.OK)
public ApiResponse<IsBookmarkedResponseDto> readIsArticleBookMarked(@PathVariable Long articleId) {
return ApiResponse.success(Success.READ_IS_ARTICLE_BOOKMARKED_SUCCESS,
userService.readIsArticleBookMarked(1L, articleId));
userService.readArticleBookmark(1L, articleId));
}

@PostMapping("/bookmark/article/{articleId}")
Expand All @@ -76,7 +76,7 @@ public ApiResponse deleteArticleBookmark(@PathVariable Long articleId) {
@ResponseStatus(HttpStatus.OK)
public ApiResponse<IsBookmarkedResponseDto> readIsSpaceBookmarked(@PathVariable Long spaceId) {
return ApiResponse.success(Success.READ_IS_SPACE_BOOKMARKED_SUCCESS,
userService.readIsSpaceBookmarked(1L, spaceId));
userService.readSpaceBookmark(1L, spaceId));
}

@PostMapping("/bookmark/space/{spaceId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void visit(final Long userId, final Long spaceId) {
inviteSpaceRelationRepository.save(relation);
}

public IsBookmarkedResponseDto readIsArticleBookMarked(final Long userId, final Long articleId) {
public IsBookmarkedResponseDto readArticleBookmark(final Long userId, final Long articleId) {

User user = findUser(userId);
Article article = findArticle(articleId);
Expand Down Expand Up @@ -120,7 +120,7 @@ public void deleteArticleBookmark(final Long userId, final Long articleId) {
articleBookmarkRelationRepository.delete(relation);
}

public IsBookmarkedResponseDto readIsSpaceBookmarked(final Long userId, final Long spaceId) {
public IsBookmarkedResponseDto readSpaceBookmark(final Long userId, final Long spaceId) {

User user = findUser(userId);
Space space = findSpace(spaceId);
Expand Down

0 comments on commit eea9217

Please sign in to comment.