Skip to content

Commit

Permalink
[#521] fix: 이색체험 검색 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
heeeeeseok committed Nov 28, 2024
1 parent 7a8c4f2 commit b1c9432
Showing 1 changed file with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
package com.jeju.nanaland.domain.experience.dto;

import com.jeju.nanaland.domain.common.dto.ImageFileDto;
import com.jeju.nanaland.domain.common.dto.SearchDto;
import com.querydsl.core.annotations.QueryProjection;
import java.time.LocalDateTime;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@Builder
@SuperBuilder
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class ExperienceSearchDto {

private Long id;
private String title;
private ImageFileDto firstImage;
private Long matchedCount;
private LocalDateTime createdAt;
public class ExperienceSearchDto extends SearchDto {

@QueryProjection
public ExperienceSearchDto(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;
}

public void addMatchedCount(Long count) {
this.matchedCount += count;
Long matchedCount,
LocalDateTime createdAt) {
super(id, title, originUrl, thumbnailUrl, matchedCount, createdAt);
}
}

0 comments on commit b1c9432

Please sign in to comment.