-
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.
Merge pull request #151 from UMC-WOWMARKET/feat/like
[Feat] 판매 및 수요조사 Like 목록 보기 구현 #134
- Loading branch information
Showing
6 changed files
with
118 additions
and
8 deletions.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/wowmarket/wow_server/mypage/myinfo/dto/GetLikeProjectDto.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 wowmarket.wow_server.mypage.myinfo.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class GetLikeProjectDto { | ||
private int totalPage; | ||
private int currentPage; | ||
private List<LikedProjectDto> projectList; | ||
|
||
@Builder | ||
public GetLikeProjectDto(int totalPage, int currentPage, List<LikedProjectDto> projectList) { | ||
this.totalPage = totalPage; | ||
this.currentPage = currentPage; | ||
this.projectList = projectList; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/wowmarket/wow_server/mypage/myinfo/dto/LikedProjectDto.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,38 @@ | ||
package wowmarket.wow_server.mypage.myinfo.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import wowmarket.wow_server.domain.DemandProject; | ||
import wowmarket.wow_server.domain.Project; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class LikedProjectDto { | ||
private Long projectId; | ||
private String sellerUniv; | ||
private String projectName; | ||
private String thumbnail; | ||
private boolean isEnd; | ||
private boolean isDel; | ||
|
||
@Builder | ||
public LikedProjectDto(Project project) { | ||
this.projectId = project.getId(); | ||
this.sellerUniv = project.getUser().getUniv(); | ||
this.projectName = project.getProjectName(); | ||
this.thumbnail = project.getThumbnail(); | ||
this.isEnd = project.isEnd(); | ||
this.isDel = project.isDel(); | ||
} | ||
|
||
@Builder | ||
public LikedProjectDto(DemandProject demandProject) { | ||
this.projectId = demandProject.getId(); | ||
this.sellerUniv = demandProject.getUser().getUniv(); | ||
this.projectName = demandProject.getProjectName(); | ||
this.thumbnail = demandProject.getThumbnail(); | ||
this.isEnd = demandProject.isEnd(); | ||
this.isDel = false; | ||
} | ||
} |
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
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