Skip to content

Commit

Permalink
fix: boards 응답 형태수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakjiyeon committed Apr 6, 2024
1 parent f4ecc87 commit 2acf9b4
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.unit.daybook.domain.board.controller;

import com.unit.daybook.domain.board.dto.request.AddBoardRequestDto;
import com.unit.daybook.domain.board.dto.response.BoardResponseDto;
import com.unit.daybook.domain.board.dto.response.BoardTmpResponse;
import com.unit.daybook.domain.board.dto.response.FindBoardListResponse;
import com.unit.daybook.domain.board.dto.response.FindOneBoardResponse;
import com.unit.daybook.domain.board.dto.response.*;
import com.unit.daybook.domain.board.service.BoardService;
import com.unit.daybook.domain.common.annotation.LoginUsers;
import com.unit.daybook.global.config.security.CustomUserDetails;
Expand Down Expand Up @@ -33,8 +30,9 @@ public FindOneBoardResponse getBoard(
* 사용자가 작성한 일지 목록 조회
*/
@GetMapping("/boards")
public FindBoardListResponse getMyBoards(@LoginUsers CustomUserDetails userDetails) {
return boardService.getMyBoards(userDetails.getMemberId());
public List<FindBoardResponse> getMyBoards(@LoginUsers CustomUserDetails userDetails) {
FindBoardListResponse tmp = boardService.getMyBoards(userDetails.getMemberId());
return tmp.boards();
}

/**
Expand Down

0 comments on commit 2acf9b4

Please sign in to comment.