Skip to content

Commit 76e7618

Browse files
committed
fix: 제보 상세 조회 Response에 날짜 필드 추가
1 parent f251708 commit 76e7618

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/bitnagil/bitnagil_backend/report/domain/Report.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@Getter
2828
@SQLDelete(sql = "UPDATE report SET deleted_at = NOW() WHERE report_id = ?")
2929
@Where(clause = "deleted_at IS NULL")
30-
public class Report extends BaseTimeEntity {
30+
public class Report extends BaseTimeEntity {
3131
@Id
3232
@GeneratedValue(strategy = GenerationType.IDENTITY)
3333
private Long reportId; // 제보ID

src/main/java/bitnagil/bitnagil_backend/report/response/ReportDetailInfoResponse.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package bitnagil.bitnagil_backend.report.response;
22

3+
import java.time.LocalDate;
34
import java.util.List;
45

56
import bitnagil.bitnagil_backend.report.domain.enums.ReportCategory;
@@ -14,6 +15,10 @@
1415
@Builder
1516
public class ReportDetailInfoResponse {
1617

18+
@Schema(description = "제보 날짜",
19+
example = "2025-11-16")
20+
private LocalDate reportDate;
21+
1722
@Schema(description = "현재 제보 상태",
1823
example = "IN_PROGRESS")
1924
private ReportStatus reportStatus;

src/main/java/bitnagil/bitnagil_backend/report/service/ReportService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public ReportDetailInfoResponse getReportDetailInfo(User user, Long reportId) {
8686
() -> new CustomException(ErrorCode.NOT_FOUND_REPORT));
8787

8888
return ReportDetailInfoResponse.builder()
89+
.reportDate(report.getCreatedAt().toLocalDate())
8990
.reportStatus(report.getReportStatus())
9091
.reportTitle(report.getReportTitle())
9192
.reportContent(report.getReportContent())

0 commit comments

Comments
 (0)