-
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.
Merge branch 'develop' into feature/#42
- Loading branch information
Showing
39 changed files
with
736 additions
and
149 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
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
5 changes: 0 additions & 5 deletions
5
...m/umc/DongnaeFriend/domain/account/book/repository/accountBook/AccountBookRepository.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
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
45 changes: 45 additions & 0 deletions
45
...ava/com/umc/DongnaeFriend/domain/account/sharing/controller/SharingCommentController.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,45 @@ | ||
package com.umc.DongnaeFriend.domain.account.sharing.controller; | ||
|
||
import com.umc.DongnaeFriend.domain.account.sharing.dto.ReqSharingCommentDto; | ||
import com.umc.DongnaeFriend.domain.account.sharing.dto.ResSharingCommentList; | ||
import com.umc.DongnaeFriend.domain.account.sharing.entity.SharingComment; | ||
import com.umc.DongnaeFriend.domain.account.sharing.service.SharingCommentService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
|
||
@RequiredArgsConstructor | ||
@RestController | ||
@RequestMapping("/account-books/sharing/comments") | ||
public class SharingCommentController { | ||
private final SharingCommentService sharingCommentService; | ||
|
||
// [가계부 공유] 댓글 등록 | ||
@PostMapping("/{accountBookId}") | ||
public String postComment(@PathVariable("accountBookId") Long accountBookId, @RequestBody ReqSharingCommentDto reqSharingCommentDto) { | ||
sharingCommentService.newComment(accountBookId, reqSharingCommentDto); | ||
return ""; | ||
} | ||
|
||
// [가계부 공유] 댓글 수정 | ||
@PutMapping("/{commentId}") | ||
public String putComment(@PathVariable("commentId") Long commentId, @RequestBody ReqSharingCommentDto reqSharingCommentDto) { | ||
sharingCommentService.modifyComment(commentId, reqSharingCommentDto); | ||
return ""; | ||
} | ||
|
||
// [가계부 공유] 댓글 삭제 | ||
@DeleteMapping("/{commentId}") | ||
public String deleteComment(@PathVariable("commentId") Long commentId) { | ||
sharingCommentService.deleteComment(commentId); | ||
return ""; | ||
} | ||
|
||
// [가계부 공유] 댓글 목록 조회 | ||
@GetMapping("") | ||
public ResSharingCommentList getList(@RequestParam Long accountBookId) { | ||
ResSharingCommentList resSharingCommentList = sharingCommentService.getCommentList(accountBookId); | ||
return resSharingCommentList; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...com/umc/DongnaeFriend/domain/account/sharing/controller/SharingCommentLikeController.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,20 @@ | ||
package com.umc.DongnaeFriend.domain.account.sharing.controller; | ||
|
||
import com.umc.DongnaeFriend.domain.account.sharing.dto.ReqSharingCommentDto; | ||
import com.umc.DongnaeFriend.domain.account.sharing.service.SharingCommentLikeService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
@RequiredArgsConstructor | ||
@RestController | ||
@RequestMapping("/account-books/sharing/likes") | ||
public class SharingCommentLikeController { | ||
private final SharingCommentLikeService sharingCommentLikeService; | ||
|
||
// [가계부 공유] 댓글 좋아요 | ||
@PostMapping("/{commentId}") | ||
public String postCommentLike(@PathVariable("commentId") Long commentId) { | ||
sharingCommentLikeService.newLike(commentId); | ||
return ""; | ||
} | ||
} |
Oops, something went wrong.