-
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.
Merge pull request #31 from Modagbul/feat/archive-repeat
미션 보드 관련 API
- Loading branch information
Showing
110 changed files
with
2,999 additions
and
253 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[[Board-API]] | ||
= Board API | ||
|
||
[[Board-게시글-생성]] | ||
=== Board 게시글 생성 | ||
operation::board-controller-test/create_board[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
--- | ||
|
||
[[Board-게시글-수정]] | ||
=== Board 게시글 수정 | ||
operation::board-controller-test/update_board[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
--- | ||
|
||
[[Board-게시글-삭제]] | ||
=== Board 게시글 삭제 | ||
operation::board-controller-test/delete_board[snippets='http-request,path-parameters,request-fields,response-fields'] | ||
--- | ||
|
||
[[Board-게시글-전체-조회]] | ||
=== Board 게시글 전체 조회 | ||
operation::board-controller-test/get_board_all[snippets='http-request,path-parameters,http-response,response-fields'] | ||
--- | ||
|
||
[[Board-게시글-상제-조회]] | ||
=== Board 게시글 상세 조회 | ||
operation::board-controller-test/get_board_detail[snippets='http-request,path-parameters,http-response,response-fields'] | ||
--- |
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,17 @@ | ||
[[Board-Comment-API]] | ||
= Board Comment API | ||
|
||
[[Board-Comment-댓글-생성]] | ||
=== Board Comment 댓글 생성 | ||
operation::board-comment-controller-test/create_board_comment[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
--- | ||
|
||
[[Board-Comment-댓글-삭제]] | ||
=== Board Comment 댓글 삭제 | ||
operation::board-comment-controller-test/delete_board_comment[snippets='http-request,path-parameters,request-fields,response-fields'] | ||
--- | ||
|
||
[[Board-Comment-댓글-전체-조회]] | ||
=== Board Comment 댓글 전체 조회 | ||
operation::board-comment-controller-test/get_board_comment_all[snippets='http-request,path-parameters,http-response,response-fields'] | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
[[MissionBoard-API]] | ||
= MissionBoard API | ||
|
||
[[MissionBoard-단일미션인증조회]] | ||
=== 단일 미션 인증 조회 | ||
operation::mission-board-controller-test/단일_미션_인증_조회[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- | ||
|
||
[[MissionBoard-반복미션인증조회]] | ||
=== 반복 미션 인증 조회 | ||
operation::mission-board-controller-test/반복 미션 인증 조회[snipipets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- | ||
|
||
[[MissionBoard-나의미션인증조회]] | ||
=== 나의 미션 인증 조회 | ||
operation::mission-archive-controller-test/나의_미션_인증_조회[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- | ||
|
||
[[MissionBoard-종료된인증조회]] | ||
=== 종료된 인증 조회 | ||
operation::mission-board-controller-test/종료된_인증_조회[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- |
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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/moing/backend/domain/board/application/dto/request/CreateBoardRequest.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,27 @@ | ||
package com.moing.backend.domain.board.application.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
|
||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
@Getter | ||
public class CreateBoardRequest { | ||
@NotBlank(message = "title 을 입력해 주세요.") | ||
@Size(min = 1, max = 15, message = "title 은 최소 1개, 최대 15개의 문자만 입력 가능합니다.") | ||
private String title; | ||
|
||
@NotBlank(message = "content 을 입력해 주세요.") | ||
@Size(min = 1, max = 300, message = "content 은 최소 1개, 최대 10개의 문자만 입력 가능합니다.") | ||
private String content; | ||
|
||
@NotNull(message = "notice 사용 여부(isNotice) 를 입력해 주세요.") | ||
private Boolean isNotice; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/moing/backend/domain/board/application/dto/request/UpdateBoardRequest.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,23 @@ | ||
package com.moing.backend.domain.board.application.dto.request; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
|
||
@Getter | ||
@Builder | ||
public class UpdateBoardRequest { | ||
@NotBlank(message = "title 을 입력해 주세요.") | ||
@Size(min = 1, max = 15, message = "title 은 최소 1개, 최대 15개의 문자만 입력 가능합니다.") | ||
private String title; | ||
|
||
@NotBlank(message = "content 을 입력해 주세요.") | ||
@Size(min = 1, max = 300, message = "content 은 최소 1개, 최대 10개의 문자만 입력 가능합니다.") | ||
private String content; | ||
|
||
@NotNull(message = "notice 사용 여부(isNotice) 를 입력해 주세요.") | ||
private Boolean isNotice; | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/com/moing/backend/domain/board/application/dto/response/BoardBlocks.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,44 @@ | ||
package com.moing.backend.domain.board.application.dto.response; | ||
|
||
import com.querydsl.core.annotations.QueryProjection; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class BoardBlocks { | ||
|
||
private Long boardId; | ||
|
||
private String writerNickName; | ||
|
||
private Boolean writerIsLeader; | ||
|
||
private String writerProfileImage; | ||
|
||
private String title; | ||
|
||
private String content; | ||
|
||
private Integer commentNum; | ||
|
||
private Boolean isRead; | ||
|
||
@QueryProjection | ||
public BoardBlocks(Long boardId, String writerNickName, Boolean writerIsLeader, String writerProfileImage, String title, String content, Integer commentNum) { | ||
this.boardId = boardId; | ||
this.writerNickName = writerNickName; | ||
this.writerIsLeader = writerIsLeader; | ||
this.writerProfileImage = writerProfileImage; | ||
this.title = title; | ||
this.content = content; | ||
this.commentNum = commentNum; | ||
this.isRead = false; | ||
} | ||
|
||
public void readBoard() { | ||
this.isRead = true; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ain/java/com/moing/backend/domain/board/application/dto/response/CreateBoardResponse.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,14 @@ | ||
package com.moing.backend.domain.board.application.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
@Getter | ||
public class CreateBoardResponse { | ||
private Long boardId; | ||
} |
20 changes: 20 additions & 0 deletions
20
...ain/java/com/moing/backend/domain/board/application/dto/response/GetAllBoardResponse.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.moing.backend.domain.board.application.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
@Getter | ||
public class GetAllBoardResponse { | ||
private int noticeNum; | ||
private List<BoardBlocks> noticeBlocks=new ArrayList<>(); | ||
private int notNoticeNum; | ||
private List<BoardBlocks> notNoticeBlocks=new ArrayList<>(); | ||
} |
Oops, something went wrong.