-
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.
- Loading branch information
Showing
114 changed files
with
3,006 additions
and
814 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### MAC DSStore | ||
.DS_Store |
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,44 @@ | ||
## 모각코하기 좋은 카페 지도 애플리케이션, 모카콩(MOCACONG) | ||
|
||
코딩하기 좋은 카페만 모아놓은 지도는 없을까? 고민했다면 모카콩! | ||
|
||
<p align="center"> | ||
<img width="20%" height="400" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/b8510091-a49a-439d-b067-eb92afe282ab"> | ||
<img width="20%" height="400" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/ed9d723f-8161-4de4-9dae-3cfc2eea43b1"> | ||
<img width="20%" height="400" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/614c6e44-9199-4042-9f29-b90f659dc613"> | ||
<img width="20%" height="400" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/a81d4fbd-a4a4-4ebb-bc63-c8e0e815e2cb"> | ||
</p> | ||
|
||
|
||
- - - | ||
|
||
### MVP 기능 | ||
<p align="center"> | ||
<img width="90%" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/328495c2-4332-45b5-b052-359c1ed4cbd2"> | ||
</p> | ||
|
||
- - - | ||
|
||
### 사용 기술스택 | ||
- `Language`: Java 11, JUnit 5 | ||
- `Framework`: Spring Boot 2.7.9 | ||
- `Database`: H2, Amazon RDS for MySQL, Amazon Elasticache for Redis | ||
- `ORM`: JPA (Spring Data JPA) | ||
- `Deploy`: Github Actions, Docker CI/CD | ||
- `Logging`: Logback, AWS Cloudwatch, AWS Lambda, Slack API | ||
- `API Docs`: SpringDoc Swagger 3 | ||
- `Performance Test`: nGrinder | ||
|
||
- - - | ||
|
||
### ERD | ||
<p align="center"> | ||
<img width="90%" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/1def43a1-9271-4b1f-947a-0ff8ad07f77d"> | ||
</p> | ||
|
||
- - - | ||
|
||
### 서비스 아키텍처 | ||
<p align="center"> | ||
<img width="90%" alt="image" src="https://github.com/mocacong/Mocacong-Backend/assets/57135043/27e4efcd-1d2e-4aca-a7c2-d655dede951a"> | ||
</p> |
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
41 changes: 41 additions & 0 deletions
41
src/main/java/mocacong/server/controller/CommentLikeController.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,41 @@ | ||
package mocacong.server.controller; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
import mocacong.server.dto.response.CommentLikeSaveResponse; | ||
import mocacong.server.security.auth.LoginUserId; | ||
import mocacong.server.service.CommentLikeService; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
@Tag(name = "CommentsLike", description = "댓글 좋아요") | ||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/comments/{commentId}/like") | ||
public class CommentLikeController { | ||
private final CommentLikeService commentLikeService; | ||
|
||
@Operation(summary = "댓글 좋아요 등록") | ||
@SecurityRequirement(name = "JWT") | ||
@PostMapping | ||
public ResponseEntity<CommentLikeSaveResponse> saveCommentLike( | ||
@LoginUserId Long memberId, | ||
@PathVariable Long commentId | ||
) { | ||
CommentLikeSaveResponse response = commentLikeService.save(memberId, commentId); | ||
return ResponseEntity.ok(response); | ||
} | ||
|
||
@Operation(summary = "댓글 좋아요 삭제") | ||
@SecurityRequirement(name = "JWT") | ||
@DeleteMapping | ||
public ResponseEntity<Void> deleteCommentLike( | ||
@LoginUserId Long memberId, | ||
@PathVariable Long commentId | ||
) { | ||
commentLikeService.delete(memberId, commentId); | ||
return ResponseEntity.ok().build(); | ||
} | ||
} |
Oops, something went wrong.