-
Notifications
You must be signed in to change notification settings - Fork 0
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 #33 from Mojacknong/feature_16/History-도메인-개발
Feature 16/history 도메인 개발
- Loading branch information
Showing
9 changed files
with
158 additions
and
19 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
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
18 changes: 18 additions & 0 deletions
18
...om/modernfarmer/farmusspring/domain/history/dto/res/FarmClubHistoryDetailResponseDto.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,18 @@ | ||
package com.modernfarmer.farmusspring.domain.history.dto.res; | ||
|
||
import com.modernfarmer.farmusspring.domain.history.document.HistoryFarmClubDetail; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record FarmClubHistoryDetailResponseDto( | ||
List<HistoryFarmClubDetail.HistoryClubPost> missionPosts | ||
) { | ||
public static FarmClubHistoryDetailResponseDto of(List<HistoryFarmClubDetail.HistoryClubPost> missionPosts) { | ||
return builder() | ||
.missionPosts(missionPosts) | ||
.build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../com/modernfarmer/farmusspring/domain/history/dto/res/FarmClubHistoryListResponseDto.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,18 @@ | ||
package com.modernfarmer.farmusspring.domain.history.dto.res; | ||
|
||
import com.modernfarmer.farmusspring.domain.history.document.History; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record FarmClubHistoryListResponseDto( | ||
List<History.Detail> farmClubHistoryList | ||
) { | ||
public static FarmClubHistoryListResponseDto of(List<History.Detail> farmClubHistoryList) { | ||
return builder() | ||
.farmClubHistoryList(farmClubHistoryList) | ||
.build(); | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
.../com/modernfarmer/farmusspring/domain/history/dto/res/VeggieHistoryDetailResponseDto.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,20 @@ | ||
package com.modernfarmer.farmusspring.domain.history.dto.res; | ||
|
||
import com.modernfarmer.farmusspring.domain.history.document.HistoryVeggieDetail; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record VeggieHistoryDetailResponseDto( | ||
List<HistoryVeggieDetail.HistoryPost> diaries, | ||
HistoryVeggieDetail.HistoryPost farmResult | ||
) { | ||
public static VeggieHistoryDetailResponseDto of(List<HistoryVeggieDetail.HistoryPost> diaries, HistoryVeggieDetail.HistoryPost farmResult) { | ||
return builder() | ||
.diaries(diaries) | ||
.farmResult(farmResult) | ||
.build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...va/com/modernfarmer/farmusspring/domain/history/dto/res/VeggieHistoryListResponseDto.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,18 @@ | ||
package com.modernfarmer.farmusspring.domain.history.dto.res; | ||
|
||
import com.modernfarmer.farmusspring.domain.history.document.History; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record VeggieHistoryListResponseDto( | ||
List<History.Detail> veggieHistoryList | ||
) { | ||
public static VeggieHistoryListResponseDto of(List<History.Detail> veggieHistoryList) { | ||
return builder() | ||
.veggieHistoryList(veggieHistoryList) | ||
.build(); | ||
} | ||
} |
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