Skip to content

Commit

Permalink
#23 refactor: ClipBoardRes 에 title 필드 반환 안되게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Dec 4, 2022
1 parent e63fcfe commit fd2e1e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public class CreateClipBoardReq {
private Long userId;

@ApiModelProperty(example = "질문이 있습니다.")
@ApiParam(value = "클립보드 제목", required = true)
@NotBlank
@ApiParam(value = "클립보드 제목", required = false)
private String title;

@ApiModelProperty(example = "경복궁역 몇 번 출구인가요?")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PatchClipBoardReq {
private Long clipBoardId;

@ApiModelProperty(example = "질문이 있습니다.")
@ApiParam(value = "클립보드 제목", required = true)
@ApiParam(value = "클립보드 제목", required = false)
@NotBlank
private String title;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static ClipBoardRes toDto(ClipBoard clipBoard){
.clipBoardId(clipBoard.getId())
.userId(clipBoard.getUser().getId())
.boardId(clipBoard.getBoard().getId())
.title(clipBoard.getTitle())
// .title(clipBoard.getTitle())
.content(clipBoard.getContent())
.status(clipBoard.getStatus())
.createdAt(clipBoard.getCreatedAt())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ClipBoard extends BaseEntity {
public ClipBoard(CreateClipBoardReq dto, User user, Board board) {
this.user = user;
this.board = board;
this.title = dto.getTitle();
// this.title = dto.getTitle();
this.content = dto.getContent();
this.reportedCnt = 0;
}
Expand All @@ -60,7 +60,7 @@ public void deleteClipBoard(){
}

public void updateClipBoard(PatchClipBoardReq dto){
this.title = dto.getTitle();
// this.title = dto.getTitle();
this.content = dto.getContent();
}

Expand Down

0 comments on commit fd2e1e5

Please sign in to comment.