|
18 | 18 | @Builder |
19 | 19 | public class InquiryPreviewResponse { |
20 | 20 |
|
21 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
22 | | - @Schema(description = "문의 ID", example = "12", accessMode = Schema.AccessMode.READ_ONLY) |
| 21 | + @Schema(description = "문의 ID", example = "12") |
23 | 22 | private Long id; |
24 | 23 |
|
25 | 24 | @Schema(description = "문의 제목", example = "서비스 사용 관련 문의") |
26 | 25 | private String title; |
27 | 26 |
|
28 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
29 | | - @Schema(description = "문의 상태", example = "대기중", accessMode = Schema.AccessMode.READ_ONLY) |
| 27 | + @Schema(description = "문의 상태", example = "대기중") |
30 | 28 | private Boolean state; |
31 | 29 |
|
32 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
33 | 30 | @Schema(description = "문의 카테고리", example = "서비스 이용 문제") |
34 | 31 | private String category; |
35 | 32 |
|
36 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
37 | 33 | @Schema(description = "첨부파일 존재 여부", example = "true") |
38 | 34 | private Boolean hasFile; |
39 | 35 |
|
40 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
41 | | - @Schema(description = "문의 작성 날짜", example = "2025-06-01", accessMode = Schema.AccessMode.READ_ONLY) |
| 36 | + @Schema(description = "문의 작성 날짜", example = "2025-06-01") |
42 | 37 | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") |
43 | 38 | private LocalDateTime createdAt; |
44 | 39 |
|
45 | | - @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
46 | | - @Schema(description = "문의 작성 유저 정보", example = "ID, Nickname, Img", accessMode = Schema.AccessMode.READ_ONLY) |
| 40 | + @Schema(description = "문의 작성 유저 정보", example = "ID, Nickname, Img") |
47 | 41 | private InquiryWriterResponse user; |
48 | 42 |
|
49 | 43 | public static InquiryPreviewResponse fromEntity(InquiryEntity entity) { |
|
0 commit comments