-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from Zatch-Team/Feature/ViewNearZatch
feat: 메인 페이지 재치 조회 #19
- Loading branch information
Showing
6 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
src/main/java/com/zatch/zatchserver/domain/ViewPopularZatch.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.zatch.zatchserver.domain; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.Date; | ||
|
||
@Getter | ||
public class ViewPopularZatch { | ||
private Long categoryId; | ||
private Boolean isFree; | ||
private String mdName; | ||
private String content; | ||
private Integer quantity; | ||
private Date dateBuy; | ||
private Date dateExpire; | ||
private Date updated_at; | ||
private Integer isOpened; | ||
private Integer anyZatch; | ||
private Integer likeCount; | ||
|
||
public ViewPopularZatch(Long categoryId, Boolean isFree, String mdName, String content | ||
, Integer quantity, Date dateBuy, Date dateExpire, Date updated_at, Integer isOpened, Integer anyZatch, | ||
Integer likeCount) { | ||
this.categoryId = categoryId; | ||
this.isFree = isFree; | ||
this.mdName = mdName; | ||
this.content = content; | ||
this.quantity = quantity; | ||
this.dateBuy = dateBuy; | ||
this.dateExpire = dateExpire; | ||
this.updated_at = updated_at; | ||
this.isOpened = isOpened; | ||
this.anyZatch = anyZatch; | ||
this.likeCount = likeCount; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/main/java/com/zatch/zatchserver/repository/MainRepository.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.zatch.zatchserver.repository; | ||
|
||
import com.zatch.zatchserver.domain.ViewNearZatch; | ||
import com.zatch.zatchserver.domain.ViewPopularZatch; | ||
|
||
import java.util.List; | ||
|
||
public interface MainRepository { | ||
List<ViewNearZatch> getNearZatch(Long userId); | ||
List<ViewPopularZatch> getPopularZatch(Long userId); | ||
} |
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