Skip to content

Commit aa3642a

Browse files
authored
Dev > Main 브랜치 병합
1. 문의 미리보기 Response Swagger 설정 수정 후 Main 브랜치로 병합합니다.
2 parents 354c68c + 446648f commit aa3642a

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

src/main/java/hs/kr/backend/devpals/domain/Inquiry/dto/InquiryPreviewResponse.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,26 @@
1818
@Builder
1919
public class InquiryPreviewResponse {
2020

21-
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
22-
@Schema(description = "문의 ID", example = "12", accessMode = Schema.AccessMode.READ_ONLY)
21+
@Schema(description = "문의 ID", example = "12")
2322
private Long id;
2423

2524
@Schema(description = "문의 제목", example = "서비스 사용 관련 문의")
2625
private String title;
2726

28-
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
29-
@Schema(description = "문의 상태", example = "대기중", accessMode = Schema.AccessMode.READ_ONLY)
27+
@Schema(description = "문의 상태", example = "대기중")
3028
private Boolean state;
3129

32-
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
3330
@Schema(description = "문의 카테고리", example = "서비스 이용 문제")
3431
private String category;
3532

36-
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
3733
@Schema(description = "첨부파일 존재 여부", example = "true")
3834
private Boolean hasFile;
3935

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")
4237
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
4338
private LocalDateTime createdAt;
4439

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")
4741
private InquiryWriterResponse user;
4842

4943
public static InquiryPreviewResponse fromEntity(InquiryEntity entity) {

src/main/java/hs/kr/backend/devpals/domain/Inquiry/repository/InquiryRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface InquiryRepository extends JpaRepository<InquiryEntity, Long> {
1313
List<InquiryEntity> findByUserIdOrderByCreatedAtDesc(Long userId);
1414
List<InquiryEntity> findAllByOrderByCreatedAtDesc();
1515
List<InquiryEntity> findByUserEmailOrderByCreatedAtDesc(String email);
16-
16+
1717
@Query("SELECT i FROM InquiryEntity i WHERE i.user.email = :email AND i.createdAt BETWEEN :startDate AND :endDate ORDER BY i.createdAt DESC")
1818
List<InquiryEntity> findInquiriesByEmailAndDate(
1919
@Param("email") String email,

0 commit comments

Comments
 (0)