-
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 #19 from angel-bridge/dev
bug: scope 에러 수정
- Loading branch information
Showing
23 changed files
with
644 additions
and
71 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
31 changes: 0 additions & 31 deletions
31
.../angel_bridge/angel_bridge_server/domain/education/dto/RecommendationProgramResponse.java
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
..._bridge/angel_bridge_server/domain/education/dto/response/EducationDetailResponseDto.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,54 @@ | ||
package angel_bridge.angel_bridge_server.domain.education.dto.response; | ||
|
||
import angel_bridge.angel_bridge_server.domain.education.entity.Education; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Builder | ||
public record EducationDetailResponseDto( | ||
|
||
@Schema(description = "제목", example = "예비 창업 패키지 2주 완성") | ||
String title, | ||
@Schema(description = "프로그램 소개", example = "21일 간 9개의 미션 수행 및 피드백") | ||
String description, | ||
|
||
@Schema(description = "시작날짜", example = "2024-12-16") | ||
LocalDate educationStartDate, | ||
|
||
@Schema(description = "종료날짜", example = "2025-01-05") | ||
LocalDate educationEndDate, | ||
|
||
@Schema(description = "모집 시작일", example = "2024-12-20") | ||
LocalDate recruitmentStartDate, | ||
|
||
@Schema(description = "모집 마감일", example = "2025-01-05") | ||
LocalDate recruitmentEndDate, | ||
|
||
@Schema(description = "가격", example = "119,000원") | ||
String price, | ||
|
||
@Schema(description = "프리뷰 이미지", example = "프리뷰 이미지 url") | ||
String preFile, | ||
|
||
@Schema(description = "디테일 이미지", example = "디테일 이미지 url") | ||
String detailFile | ||
|
||
) { | ||
|
||
public static EducationDetailResponseDto from(Education education, String preImage, String detailImage) { | ||
|
||
return EducationDetailResponseDto.builder() | ||
.title(education.getEducationTitle()) | ||
.description(education.getEducationDescription()) | ||
.educationStartDate(education.getEducationStartDate()) | ||
.educationEndDate(education.getEducationEndDate()) | ||
.recruitmentStartDate(education.getRecruitmentStartDate()) | ||
.recruitmentEndDate(education.getRecruitmentEndDate()) | ||
.price(education.getPrice()) | ||
.preFile(preImage) | ||
.detailFile(detailImage) | ||
.build(); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
.../angel_bridge/angel_bridge_server/domain/education/dto/response/EducationResponseDto.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,35 @@ | ||
package angel_bridge.angel_bridge_server.domain.education.dto.response; | ||
|
||
import angel_bridge.angel_bridge_server.domain.education.entity.Education; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record EducationResponseDto( | ||
|
||
@Schema(description = "프로그램 id", example = "1") | ||
Long educationId, | ||
|
||
@Schema(description = "프리뷰 이미지", example = "프리뷰 이미지 url") | ||
String preImage, | ||
|
||
@Schema(description = "프로그램 소개", example = "21일 간 9개의 미션 수행 및 피드백") | ||
String description, | ||
|
||
@Schema(description = "제목", example = "예비 창업 패키지 2주 완성") | ||
String title, | ||
|
||
@Schema(description = "모집 여부", example = "모집중 | 모집예정 | 모집종료") | ||
String recruitmentStatus | ||
) { | ||
|
||
public static EducationResponseDto from(Education education, String preImage) { | ||
return EducationResponseDto.builder() | ||
.educationId(education.getId()) | ||
.preImage(preImage) | ||
.description(education.getEducationDescription()) | ||
.title(education.getEducationTitle()) | ||
.recruitmentStatus(education.getRecruitmentStatus().getDescription()) | ||
.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
Oops, something went wrong.