From cb3c9c4f9a7b617518c9c5801144eadcf93b3f89 Mon Sep 17 00:00:00 2001 From: Seonghun Jeong <119427233+zzoe2346@users.noreply.github.com> Date: Sat, 9 Nov 2024 17:32:45 +0900 Subject: [PATCH] =?UTF-8?q?HotFix:=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=A1=B0=ED=9A=8C=EC=97=90=EC=84=9C=20con?= =?UTF-8?q?tent=20=EB=8A=94=20`String`=20=EC=9C=BC=EB=A1=9C=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=A1=A4=EB=B0=B1=20(#2?= =?UTF-8?q?10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 이전 처럼 String 으로 응답하도록 수정 --- .../java/com/example/sinitto/point/dto/PointLogResponse.java | 2 +- .../java/com/example/sinitto/point/service/PointService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/sinitto/point/dto/PointLogResponse.java b/src/main/java/com/example/sinitto/point/dto/PointLogResponse.java index 71536ae8..f563100c 100644 --- a/src/main/java/com/example/sinitto/point/dto/PointLogResponse.java +++ b/src/main/java/com/example/sinitto/point/dto/PointLogResponse.java @@ -6,7 +6,7 @@ public record PointLogResponse( LocalDateTime postTime, - PointLog.Content content, + String content, int price, PointLog.Status status ) { diff --git a/src/main/java/com/example/sinitto/point/service/PointService.java b/src/main/java/com/example/sinitto/point/service/PointService.java index d53840be..2621f233 100644 --- a/src/main/java/com/example/sinitto/point/service/PointService.java +++ b/src/main/java/com/example/sinitto/point/service/PointService.java @@ -66,7 +66,7 @@ public Page getPointLogs(Long memberId, Pageable pageable) { return pointLogRepository.findAllByMember(member, pageable) .map(pointLog -> new PointLogResponse( pointLog.getPostTime(), - pointLog.getContent(), + pointLog.getContent().getMessage(), pointLog.getPrice(), pointLog.getStatus() ));