-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: 팀 상세조회에 teamLeaderId 정보 추가 * test: 팀 상세조회 테스트에 teamLeaderId 정보 추가 * feat: study상세조회에 studyLeaderId 추가 * test: study상세조회 테스트에 studyLeaderId 추가
- Loading branch information
Showing
12 changed files
with
100 additions
and
45 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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/doore/study/application/dto/response/StudyReferenceResponse.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,27 @@ | ||
package doore.study.application.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import doore.study.domain.Study; | ||
import doore.study.domain.StudyStatus; | ||
import java.time.LocalDate; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record StudyReferenceResponse( | ||
Long id, | ||
String name, | ||
String description, | ||
@JsonFormat(pattern = "yyyy-MM-dd") | ||
LocalDate startDate, | ||
@JsonFormat(pattern = "yyyy-MM-dd") | ||
LocalDate endDate, | ||
StudyStatus status, | ||
Long cropId, | ||
long studyProgressRatio | ||
) { | ||
|
||
public static StudyReferenceResponse of(final Study study, final long studyProgressRatio) { | ||
return new StudyReferenceResponse(study.getId(), study.getName(), study.getDescription(), study.getStartDate(), | ||
study.getEndDate(), study.getStatus(), study.getCropId(), studyProgressRatio); | ||
} | ||
} |
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
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
Oops, something went wrong.