From 1c35a28cb9aa916bf49a924419161d027282fd39 Mon Sep 17 00:00:00 2001 From: kimjm9841 Date: Sat, 3 Feb 2024 00:24:40 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=ED=86=A0=ED=81=B0=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=9C=A0=EC=A0=80=20=EC=A0=95=EB=B3=B4=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onnoff/domain/off/feed/controller/FeedController.java | 6 +++--- .../onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java | 2 -- .../onnoff/domain/off/feed/service/FeedService.java | 2 +- .../onnoff/domain/off/feed/service/FeedServiceImpl.java | 8 ++++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java index 7b6fa72..32b66de 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java @@ -28,9 +28,9 @@ public ApiResponse addFeed(@RequestBody @Valid Fe } @GetMapping("/feeds") - @Operation(summary = "워라벨 피드 조회 API",description = "특정한 날짜의 워라벨 피드를 조회하는 API입니다. Query String으로 사용자 아이디와 날짜를 입력해 주세요.") - public ApiResponse> getFeed(@RequestParam(name = "userId") Long userId, @RequestParam(name = "date") LocalDate date){ - List feedList = feedService.getFeed(userId, date); + @Operation(summary = "워라벨 피드 조회 API",description = "특정한 날짜의 워라벨 피드를 조회하는 API입니다. Query String으로 날짜를 입력해 주세요.") + public ApiResponse> getFeed(@RequestParam(name = "date") LocalDate date){ + List feedList = feedService.getFeed(date); return ApiResponse.onSuccess(feedList.stream().map(FeedConverter::toFeedResultDTO).toList()); } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java index 8eb8ca2..3208c32 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java @@ -12,8 +12,6 @@ public class FeedRequestDTO { @Getter public static class AddFeedDTO { - @NotNull - Long userId; @NotNull @PastOrPresent LocalDate date; diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java index a20586d..a36a29a 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java @@ -11,7 +11,7 @@ public interface FeedService { Feed addFeed(FeedRequestDTO.AddFeedDTO request); - List getFeed(Long userId, LocalDate date); + List getFeed(LocalDate date); Feed modifyFeed(FeedRequestDTO.ModifyFeedDTO request); diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java index 7c6c6bf..0feed24 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java @@ -2,6 +2,7 @@ import com.onnoff.onnoff.apiPayload.code.status.ErrorStatus; import com.onnoff.onnoff.apiPayload.exception.GeneralException; +import com.onnoff.onnoff.auth.UserContext; import com.onnoff.onnoff.domain.off.feed.converter.FeedConverter; import com.onnoff.onnoff.domain.off.feed.dto.FeedRequestDTO; import com.onnoff.onnoff.domain.off.feed.entity.Feed; @@ -20,19 +21,18 @@ public class FeedServiceImpl implements FeedService { private final FeedRepository feedRepository; - private final UserRepository userRepository; @Override @Transactional public Feed addFeed(FeedRequestDTO.AddFeedDTO request) { - User user = userRepository.findById(request.getUserId()).orElseThrow(() -> new GeneralException(ErrorStatus.USER_NOT_FOUND)); + User user = UserContext.getUser(); return feedRepository.save(FeedConverter.toFeed(request, user)); } @Override @Transactional(readOnly = true) - public List getFeed(Long userId, LocalDate date) { - User user = userRepository.findById(userId).orElseThrow(() -> new GeneralException(ErrorStatus.USER_NOT_FOUND)); + public List getFeed(LocalDate date) { + User user = UserContext.getUser(); return feedRepository.findAllByUserAndDateOrderByCreatedAtAsc(user, date); } From 22b7441ad20f7043f1dbfba8b30bee861ed10749 Mon Sep 17 00:00:00 2001 From: kimjm9841 Date: Sat, 3 Feb 2024 00:32:27 +0900 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=ED=94=BC=EB=93=9C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20API=20=EC=9D=91=EB=8B=B5=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/off/feed/controller/FeedController.java | 11 +++++------ .../onnoff/domain/off/feed/service/FeedService.java | 2 +- .../domain/off/feed/service/FeedServiceImpl.java | 4 +++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java index 32b66de..c44bf19 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java @@ -28,8 +28,8 @@ public ApiResponse addFeed(@RequestBody @Valid Fe } @GetMapping("/feeds") - @Operation(summary = "워라벨 피드 조회 API",description = "특정한 날짜의 워라벨 피드를 조회하는 API입니다. Query String으로 날짜를 입력해 주세요.") - public ApiResponse> getFeed(@RequestParam(name = "date") LocalDate date){ + @Operation(summary = "워라벨 피드 조회 API", description = "특정한 날짜의 워라벨 피드를 조회하는 API입니다. Query String으로 날짜를 입력해 주세요.") + public ApiResponse> getFeed(@RequestParam(name = "date") LocalDate date) { List feedList = feedService.getFeed(date); return ApiResponse.onSuccess(feedList.stream().map(FeedConverter::toFeedResultDTO).toList()); } @@ -42,9 +42,8 @@ public ApiResponse modifyFeed(@RequestBody @Valid } @DeleteMapping("/feeds/{feedId}") - @Operation(summary = "워라벨 피드 삭제 API",description = "기존의 워라벨 피드를 삭제하는 API입니다.") - public ApiResponse deleteFeed(@PathVariable(name = "feedId") Long feedId){ - feedService.deleteFeed(feedId); - return ApiResponse.onSuccess(null); + @Operation(summary = "워라벨 피드 삭제 API", description = "기존의 워라벨 피드를 삭제하는 API입니다.") + public ApiResponse deleteFeed(@PathVariable(name = "feedId") Long feedId) { + return ApiResponse.onSuccess(feedService.deleteFeed(feedId)); } } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java index a36a29a..deabce3 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java @@ -15,5 +15,5 @@ public interface FeedService { Feed modifyFeed(FeedRequestDTO.ModifyFeedDTO request); - void deleteFeed(Long feedId); + Long deleteFeed(Long feedId); } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java index 0feed24..f2a6512 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java @@ -49,8 +49,10 @@ public Feed modifyFeed(FeedRequestDTO.ModifyFeedDTO request) { @Override @Transactional - public void deleteFeed(Long feedId) { + public Long deleteFeed(Long feedId) { Feed feed = feedRepository.findById(feedId).orElseThrow(() -> new GeneralException(ErrorStatus.FEED_NOT_FOUND)); feedRepository.delete(feed); + + return feed.getId(); } } From bbd9bee562c2b48a5fd82e3e916d3031eda98794 Mon Sep 17 00:00:00 2001 From: kimjm9841 Date: Sat, 3 Feb 2024 15:21:17 +0900 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=EC=88=98=EC=A0=95=20API=20?= =?UTF-8?q?=EC=84=B8=EB=B6=84=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apiPayload/code/status/ErrorStatus.java | 1 - .../off/feed/controller/FeedController.java | 22 +++++++++++--- .../domain/off/feed/dto/FeedRequestDTO.java | 5 +--- .../onnoff/domain/off/feed/entity/Feed.java | 20 ++++++------- .../domain/off/feed/service/FeedService.java | 6 +++- .../off/feed/service/FeedServiceImpl.java | 29 ++++++++++++++----- 6 files changed, 56 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/onnoff/onnoff/apiPayload/code/status/ErrorStatus.java b/src/main/java/com/onnoff/onnoff/apiPayload/code/status/ErrorStatus.java index 7da0f93..71a74fd 100644 --- a/src/main/java/com/onnoff/onnoff/apiPayload/code/status/ErrorStatus.java +++ b/src/main/java/com/onnoff/onnoff/apiPayload/code/status/ErrorStatus.java @@ -40,7 +40,6 @@ public enum ErrorStatus implements BaseErrorCode { // 피드 관련 에러 FEED_NOT_FOUND(HttpStatus.BAD_REQUEST, "FEED4001", "해당하는 워라벨 피드가 없습니다."), - FEED_NOT_BLANK(HttpStatus.BAD_REQUEST, "FEED4002", "워라벨 피드 내용은 공백일 수 없습니다."), // 피드 사진 관련 에러 FEED_IMAGE_EXIST(HttpStatus.BAD_REQUEST, "FEEDIMAGE4001", "이미 해당 위치에 업로드된 워라벨 피드 사진이 있습니다."), diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java index c44bf19..9c4769b 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java @@ -34,10 +34,24 @@ public ApiResponse> getFeed(@RequestParam(na return ApiResponse.onSuccess(feedList.stream().map(FeedConverter::toFeedResultDTO).toList()); } - @PatchMapping("/feeds") - @Operation(summary = "워라벨 피드 수정 API", description = "기존의 워라벨 피드를 수정하는 API입니다.") - public ApiResponse modifyFeed(@RequestBody @Valid FeedRequestDTO.ModifyFeedDTO request) { - Feed feed = feedService.modifyFeed(request); + @PatchMapping("/feeds/{feedId}") + @Operation(summary = "워라벨 피드 수정 API", description = "워라벨 피드의 내용을 수정하는 API입니다.") + public ApiResponse modifyFeed(@PathVariable(name = "feedId") Long feedId, @RequestBody @Valid FeedRequestDTO.ModifyFeedDTO request) { + Feed feed = feedService.modifyFeed(feedId, request); + return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + } + + @PatchMapping("/feeds/{feedId}/delay") + @Operation(summary = "워라벨 피드 내일로 미루기 API", description = "워라벨 피드의 날짜를 현재 기준 내일로 변경하는 API입니다.") + public ApiResponse delayFeed(@PathVariable(name = "feedId") Long feedId) { + Feed feed = feedService.delayFeed(feedId); + return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + } + + @PatchMapping("/feeds/{feedId}/check") + @Operation(summary = "워라벨 피드 체크 및 해제 API", description = "워라벨 피드를 체크하거나 체크 해제하는 API입니다.") + public ApiResponse checkFeed(@PathVariable(name = "feedId") Long feedId) { + Feed feed = feedService.checkFeed(feedId); return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java index 3208c32..d626999 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedRequestDTO.java @@ -22,11 +22,8 @@ public static class AddFeedDTO { @Getter public static class ModifyFeedDTO { - @NotNull - Long feedId; - LocalDate date; + @NotBlank @Size(max = 30) String content; - Boolean isChecked; } } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/entity/Feed.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/entity/Feed.java index 6a0fab2..655f9a2 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/entity/Feed.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/entity/Feed.java @@ -30,15 +30,15 @@ public class Feed extends BaseEntity { @JoinColumn(name = "user_id") private User user; - public void updateFeed(LocalDate date, String content, Boolean isChecked) { - if (date != null) { - this.date = date; - } - if (content != null) { - this.content = content; - } - if (isChecked != null) { - this.isChecked = isChecked; - } + public void setContent(String content) { + this.content = content; + } + + public void setDate(LocalDate date) { + this.date = date; + } + + public void setIsChecked(Boolean isChecked) { + this.isChecked = isChecked; } } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java index deabce3..6b33acb 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedService.java @@ -13,7 +13,11 @@ public interface FeedService { List getFeed(LocalDate date); - Feed modifyFeed(FeedRequestDTO.ModifyFeedDTO request); + Feed modifyFeed(Long feedId, FeedRequestDTO.ModifyFeedDTO request); + + Feed delayFeed(Long feedId); + + Feed checkFeed(Long feedId); Long deleteFeed(Long feedId); } diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java index f2a6512..d4f0485 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/service/FeedServiceImpl.java @@ -8,7 +8,6 @@ import com.onnoff.onnoff.domain.off.feed.entity.Feed; import com.onnoff.onnoff.domain.off.feed.repository.FeedRepository; import com.onnoff.onnoff.domain.user.User; -import com.onnoff.onnoff.domain.user.repository.UserRepository; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -38,12 +37,28 @@ public List getFeed(LocalDate date) { @Override @Transactional - public Feed modifyFeed(FeedRequestDTO.ModifyFeedDTO request) { - Feed feed = feedRepository.findById(request.getFeedId()).orElseThrow(() -> new GeneralException(ErrorStatus.FEED_NOT_FOUND)); - if (request.getContent() != null && request.getContent().trim().isEmpty()) { - throw new GeneralException(ErrorStatus.FEED_NOT_BLANK); - } - feed.updateFeed(request.getDate(), request.getContent(), request.getIsChecked()); + public Feed modifyFeed(Long feedId, FeedRequestDTO.ModifyFeedDTO request) { + Feed feed = feedRepository.findById(feedId).orElseThrow(() -> new GeneralException(ErrorStatus.FEED_NOT_FOUND)); + feed.setContent(request.getContent()); + + return feed; + } + + @Override + @Transactional + public Feed delayFeed(Long feedId) { + Feed feed = feedRepository.findById(feedId).orElseThrow(() -> new GeneralException(ErrorStatus.FEED_NOT_FOUND)); + feed.setDate(LocalDate.now().plusDays(1)); + + return feed; + } + + @Override + @Transactional + public Feed checkFeed(Long feedId) { + Feed feed = feedRepository.findById(feedId).orElseThrow(() -> new GeneralException(ErrorStatus.FEED_NOT_FOUND)); + feed.setIsChecked(feed.getIsChecked().equals(false)); + return feed; } From 260c83f51330df4ad6f256b06ff5a2b7ea2f2294 Mon Sep 17 00:00:00 2001 From: kimjm9841 Date: Sat, 3 Feb 2024 15:25:36 +0900 Subject: [PATCH 4/4] =?UTF-8?q?rename:=20DTO=EB=AA=85=20=EA=B0=84=EB=9E=B5?= =?UTF-8?q?=ED=95=98=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../off/feed/controller/FeedController.java | 20 +++++++++---------- .../off/feed/converter/FeedConverter.java | 4 ++-- .../domain/off/feed/dto/FeedResponseDTO.java | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java index 9c4769b..9b48027 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/controller/FeedController.java @@ -22,37 +22,37 @@ public class FeedController { @PostMapping("/feeds") @Operation(summary = "워라벨 피드 추가 API", description = "새로운 워라벨 피드를 추가하는 API입니다.") - public ApiResponse addFeed(@RequestBody @Valid FeedRequestDTO.AddFeedDTO request) { + public ApiResponse addFeed(@RequestBody @Valid FeedRequestDTO.AddFeedDTO request) { Feed feed = feedService.addFeed(request); - return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + return ApiResponse.onSuccess(FeedConverter.toFeedDTO(feed)); } @GetMapping("/feeds") @Operation(summary = "워라벨 피드 조회 API", description = "특정한 날짜의 워라벨 피드를 조회하는 API입니다. Query String으로 날짜를 입력해 주세요.") - public ApiResponse> getFeed(@RequestParam(name = "date") LocalDate date) { + public ApiResponse> getFeed(@RequestParam(name = "date") LocalDate date) { List feedList = feedService.getFeed(date); - return ApiResponse.onSuccess(feedList.stream().map(FeedConverter::toFeedResultDTO).toList()); + return ApiResponse.onSuccess(feedList.stream().map(FeedConverter::toFeedDTO).toList()); } @PatchMapping("/feeds/{feedId}") @Operation(summary = "워라벨 피드 수정 API", description = "워라벨 피드의 내용을 수정하는 API입니다.") - public ApiResponse modifyFeed(@PathVariable(name = "feedId") Long feedId, @RequestBody @Valid FeedRequestDTO.ModifyFeedDTO request) { + public ApiResponse modifyFeed(@PathVariable(name = "feedId") Long feedId, @RequestBody @Valid FeedRequestDTO.ModifyFeedDTO request) { Feed feed = feedService.modifyFeed(feedId, request); - return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + return ApiResponse.onSuccess(FeedConverter.toFeedDTO(feed)); } @PatchMapping("/feeds/{feedId}/delay") @Operation(summary = "워라벨 피드 내일로 미루기 API", description = "워라벨 피드의 날짜를 현재 기준 내일로 변경하는 API입니다.") - public ApiResponse delayFeed(@PathVariable(name = "feedId") Long feedId) { + public ApiResponse delayFeed(@PathVariable(name = "feedId") Long feedId) { Feed feed = feedService.delayFeed(feedId); - return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + return ApiResponse.onSuccess(FeedConverter.toFeedDTO(feed)); } @PatchMapping("/feeds/{feedId}/check") @Operation(summary = "워라벨 피드 체크 및 해제 API", description = "워라벨 피드를 체크하거나 체크 해제하는 API입니다.") - public ApiResponse checkFeed(@PathVariable(name = "feedId") Long feedId) { + public ApiResponse checkFeed(@PathVariable(name = "feedId") Long feedId) { Feed feed = feedService.checkFeed(feedId); - return ApiResponse.onSuccess(FeedConverter.toFeedResultDTO(feed)); + return ApiResponse.onSuccess(FeedConverter.toFeedDTO(feed)); } @DeleteMapping("/feeds/{feedId}") diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/converter/FeedConverter.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/converter/FeedConverter.java index 01fe0e6..4108ba2 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/converter/FeedConverter.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/converter/FeedConverter.java @@ -16,8 +16,8 @@ public static Feed toFeed(FeedRequestDTO.AddFeedDTO request, User user) { .build(); } - public static FeedResponseDTO.FeedResultDTO toFeedResultDTO(Feed feed) { - return FeedResponseDTO.FeedResultDTO.builder() + public static FeedResponseDTO.FeedDTO toFeedDTO(Feed feed) { + return FeedResponseDTO.FeedDTO.builder() .feedId(feed.getId()) .date(feed.getDate()) .content(feed.getContent()) diff --git a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedResponseDTO.java b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedResponseDTO.java index 396effb..a785581 100644 --- a/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedResponseDTO.java +++ b/src/main/java/com/onnoff/onnoff/domain/off/feed/dto/FeedResponseDTO.java @@ -13,7 +13,7 @@ public class FeedResponseDTO { @Getter @NoArgsConstructor @AllArgsConstructor - public static class FeedResultDTO { + public static class FeedDTO { Long feedId; LocalDate date; String content;