-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Fix] 검색 조건 수정
- Loading branch information
Showing
26 changed files
with
1,974 additions
and
313 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/main/java/com/jeju/nanaland/domain/common/dto/SearchDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.jeju.nanaland.domain.common.dto; | ||
|
||
import com.querydsl.core.annotations.QueryProjection; | ||
import java.time.LocalDateTime; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class SearchDto { | ||
|
||
private Long id; | ||
private String title; | ||
private ImageFileDto firstImage; | ||
private Long matchedCount; | ||
private LocalDateTime createdAt; | ||
|
||
@QueryProjection | ||
public SearchDto(Long id, String title, String originUrl, String thumbnailUrl, | ||
Long matchedCount, LocalDateTime createdAt) { | ||
this.id = id; | ||
this.title = title; | ||
this.firstImage = new ImageFileDto(originUrl, thumbnailUrl); | ||
this.matchedCount = matchedCount; | ||
this.createdAt = createdAt; | ||
} | ||
|
||
public void addMatchedCount(Long count) { | ||
this.matchedCount += count; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/jeju/nanaland/domain/experience/dto/ExperienceSearchDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.jeju.nanaland.domain.experience.dto; | ||
|
||
import com.jeju.nanaland.domain.common.dto.SearchDto; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
import java.time.LocalDateTime; | ||
import lombok.AccessLevel; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class ExperienceSearchDto extends SearchDto { | ||
|
||
@QueryProjection | ||
public ExperienceSearchDto(Long id, String title, String originUrl, String thumbnailUrl, | ||
Long matchedCount, | ||
LocalDateTime createdAt) { | ||
super(id, title, originUrl, thumbnailUrl, matchedCount, createdAt); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/jeju/nanaland/domain/festival/dto/FestivalSearchDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.jeju.nanaland.domain.festival.dto; | ||
|
||
import com.jeju.nanaland.domain.common.dto.SearchDto; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
import java.time.LocalDateTime; | ||
import lombok.AccessLevel; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class FestivalSearchDto extends SearchDto { | ||
|
||
@QueryProjection | ||
public FestivalSearchDto(Long id, String title, String originUrl, String thumbnailUrl, | ||
Long matchedCount, | ||
LocalDateTime createdAt) { | ||
super(id, title, originUrl, thumbnailUrl, matchedCount, createdAt); | ||
} | ||
} |
Oops, something went wrong.