-
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.
- Loading branch information
1 parent
53b818d
commit 47e442e
Showing
17 changed files
with
80 additions
and
77 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
...java/com/modernfarmer/farmusspring/domain/farmclub/dto/res/CreateFarmClubResponseDto.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,14 @@ | ||
package com.modernfarmer.farmusspring.domain.farmclub.dto.res; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record CreateFarmClubResponseDto ( | ||
Long farmClubId | ||
){ | ||
public static CreateFarmClubResponseDto of(Long farmClubId) { | ||
return new CreateFarmClubResponseDto(farmClubId); | ||
return CreateFarmClubResponseDto.builder() | ||
.farmClubId(farmClubId) | ||
.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
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
7 changes: 6 additions & 1 deletion
7
...va/com/modernfarmer/farmusspring/domain/farmclub/dto/res/RegisterFarmClubResponseDto.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,14 @@ | ||
package com.modernfarmer.farmusspring.domain.farmclub.dto.res; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record RegisterFarmClubResponseDto ( | ||
Long userFarmClubId | ||
){ | ||
public static RegisterFarmClubResponseDto of(Long userFarmClubId) { | ||
return new RegisterFarmClubResponseDto(userFarmClubId); | ||
return RegisterFarmClubResponseDto.builder() | ||
.userFarmClubId(userFarmClubId) | ||
.build(); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...com/modernfarmer/farmusspring/domain/farmclub/repository/MissionPostRepositoryCustom.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,11 +1,11 @@ | ||
package com.modernfarmer.farmusspring.domain.farmclub.repository; | ||
|
||
|
||
import com.modernfarmer.farmusspring.domain.farmclub.vo.GetMissionPostListWithStepCountsAndImages; | ||
import com.modernfarmer.farmusspring.domain.farmclub.vo.GetMissionPostListWithStepCountsAndImagesVo; | ||
|
||
import java.util.List; | ||
|
||
public interface MissionPostRepositoryCustom { | ||
|
||
List<GetMissionPostListWithStepCountsAndImages> getMissionPostStepNumAndImage(Long farmClubId); | ||
List<GetMissionPostListWithStepCountsAndImagesVo> getMissionPostStepNumAndImage(Long farmClubId); | ||
} |
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
5 changes: 2 additions & 3 deletions
5
...ssionPostListWithStepCountsAndImages.java → ...ionPostListWithStepCountsAndImagesVo.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,15 +1,14 @@ | ||
package com.modernfarmer.farmusspring.domain.farmclub.vo; | ||
|
||
import com.modernfarmer.farmusspring.domain.farmclub.entity.MissionPost; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
|
||
import java.util.List; | ||
|
||
public record GetMissionPostListWithStepCountsAndImages( | ||
public record GetMissionPostListWithStepCountsAndImagesVo( | ||
Long count, | ||
List<String> images | ||
) { | ||
@QueryProjection | ||
public GetMissionPostListWithStepCountsAndImages { | ||
public GetMissionPostListWithStepCountsAndImagesVo { | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
...com/modernfarmer/farmusspring/domain/veggieinfo/dto/res/GetVeggieInfoListResponseDto.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/com/modernfarmer/farmusspring/domain/veggieinfo/dto/res/InfoForRegister.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/main/java/com/modernfarmer/farmusspring/domain/veggieinfo/helper/VeggieInfoHelper.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
6 changes: 3 additions & 3 deletions
6
...om/modernfarmer/farmusspring/domain/veggieinfo/repository/CustomVeggieInfoRepository.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,14 +1,14 @@ | ||
package com.modernfarmer.farmusspring.domain.veggieinfo.repository; | ||
|
||
import com.modernfarmer.farmusspring.domain.veggieinfo.dto.res.CreateFarmClubVo; | ||
import com.modernfarmer.farmusspring.domain.veggieinfo.dto.res.InfoForRegister; | ||
import com.modernfarmer.farmusspring.domain.veggieinfo.vo.CreateFarmClubVo; | ||
import com.modernfarmer.farmusspring.domain.veggieinfo.vo.InfoForRegisterVo; | ||
import com.modernfarmer.farmusspring.domain.veggieinfo.vo.StepVo; | ||
|
||
import java.util.List; | ||
|
||
public interface CustomVeggieInfoRepository { | ||
|
||
List<InfoForRegister> getVeggieInfoListForRegister(); | ||
List<InfoForRegisterVo> getVeggieInfoListForRegister(); | ||
CreateFarmClubVo getVeggieInfoForCreateFarmClub(String veggieInfoId); | ||
List<StepVo> getVeggieInfoStepList(String veggieInfoId); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
.../veggieinfo/dto/res/CreateFarmClubVo.java → ...omain/veggieinfo/vo/CreateFarmClubVo.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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/modernfarmer/farmusspring/domain/veggieinfo/vo/InfoForRegisterVo.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,13 @@ | ||
package com.modernfarmer.farmusspring.domain.veggieinfo.vo; | ||
|
||
import com.modernfarmer.farmusspring.domain.veggieinfo.enums.Difficulty; | ||
|
||
|
||
public record InfoForRegisterVo( | ||
String _id, | ||
String name, | ||
Difficulty difficulty, | ||
String veggieImage, | ||
String period | ||
){ | ||
} |