-
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 #162 from UMC-WOWMARKET/feat/demandnew
[feat] 참여폼 추가질문 불러오기 API
- Loading branch information
Showing
5 changed files
with
64 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
19 changes: 19 additions & 0 deletions
19
src/main/java/wowmarket/wow_server/detail/demandproject/dto/DemandQuestionResponseDto.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,19 @@ | ||
package wowmarket.wow_server.detail.demandproject.dto; | ||
|
||
import lombok.Getter; | ||
import wowmarket.wow_server.domain.DemandQuestion; | ||
|
||
//참여폼 추가질문 정보 불러오는 Dto | ||
|
||
@Getter | ||
public class DemandQuestionResponseDto { | ||
private Long id; | ||
private String question; //질문 내용 | ||
private boolean essential; //필수 여부 | ||
|
||
public DemandQuestionResponseDto(DemandQuestion demandQuestion) { | ||
this.id = demandQuestion.getId(); | ||
this.question = demandQuestion.getQuestion(); | ||
this.essential = demandQuestion.isEssential(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/wowmarket/wow_server/detail/demandproject/dto/DemandResponseDto.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 wowmarket.wow_server.detail.demandproject.dto; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
//참여폼 정보 불러오는 Dto | ||
|
||
@Getter | ||
public class DemandResponseDto { | ||
private List<DemandItemResponseDto> demandItemResponseDtoList; | ||
private List<DemandQuestionResponseDto> demandQuestionResponseDtoList; | ||
|
||
public DemandResponseDto(List<DemandItemResponseDto> demandItemResponseDtoList, List<DemandQuestionResponseDto> demandQuestionResponseDtoList) { | ||
this.demandItemResponseDtoList = demandItemResponseDtoList; | ||
this.demandQuestionResponseDtoList = demandQuestionResponseDtoList; | ||
} | ||
} |
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