-
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.
Browse files
Browse the repository at this point in the history
[Feat] 유저 댓글 API 수정, 무중단 배포 ec2 nginx 세팅 완료
- Loading branch information
Showing
13 changed files
with
112 additions
and
116 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
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
24 changes: 24 additions & 0 deletions
24
backend/src/main/java/backend/backend/noticeboardcomment/dto/CommentResponse.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,24 @@ | ||
package backend.backend.noticeboardcomment.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
public class CommentResponse { | ||
private Long id; | ||
private Long noticeBoardId; | ||
private String author; | ||
private String context; | ||
private LocalDateTime created_at; | ||
|
||
public CommentResponse(Long id, Long noticeBoardId, String author, String context, LocalDateTime created_at) { | ||
this.id = id; | ||
this.noticeBoardId = noticeBoardId; | ||
this.author = author; | ||
this.context = context; | ||
this.created_at = created_at; | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
backend/src/main/java/backend/backend/noticeboardcomment/dto/CommentResponseDto.java
This file was deleted.
Oops, something went wrong.
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: 4 additions & 6 deletions
10
backend/src/main/java/backend/backend/noticeboardcomment/service/CommentService.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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
package backend.backend.noticeboardcomment.service; | ||
|
||
import backend.backend.noticeboardcomment.dto.CommentRequestDto; | ||
import backend.backend.noticeboardcomment.dto.CommentResponseDto; | ||
import backend.backend.noticeboardcomment.dto.CommentResponse; | ||
import backend.backend.user.entity.User; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
|
||
public interface CommentService { | ||
List<CommentResponseDto> getAllCommentsByNoticeBoardId(Long noticeBoardId); | ||
CommentResponseDto createComment(User user, Long noticeBoardId, CommentRequestDto commentRequestDto); | ||
List<CommentResponse> getAllCommentsByNoticeBoardId(Long noticeBoardId); | ||
CommentResponse createComment(User user, Long noticeBoardId, CommentRequestDto commentRequestDto); | ||
void deleteComment(Long commentId); | ||
CommentResponseDto getCommentById(Long commentId); | ||
|
||
CommentResponse getCommentById(Long commentId); | ||
} |
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
Oops, something went wrong.