-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
재성님 안녕하세요! lms 마지막 요구사항 변경 부분 진행해봤습니다! #396
Open
jhd7130
wants to merge
12
commits into
next-step:jhd7130
Choose a base branch
from
jhd7130:atom/step4
base: jhd7130
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ff5e7b6
docs : 요구사항 정리
jhd7130 d918b0c
feat : CoverImage 일급 컬렉션 만들기
jhd7130 96d1b01
refact : 강의가 하나 이상의 커버 이미지를 가질 수 있다. 요구사항에 따른 DB 변경 및 리펙토링
jhd7130 04fade3
강의 모집 상태 리네이밍 및 강의 가능 여부 체킹 메서드 추가
jhd7130 2c000d7
refact : LectureStatus, LectureRecruitingStatus 상태 분리
jhd7130 1cbd539
refact : 강의 상태를 강의 진행 상태, 모집 상태로 분리
jhd7130 02ee984
refact : 선발된 인원에 대해서만 수강 승인이 가능하다.
jhd7130 0ac6372
docs : 체크리스트 체크
jhd7130 7c5e351
docs : 마지막 체크리스트 추가
jhd7130 088f5dd
fix : LectureRecruitingStatus 스타일 바꿔보기
jhd7130 6838fca
refact : 주생성자를 사용하여 부생성자 지정으로 코드중복 제거
jhd7130 ebbc440
refact : enum에게 메세지 전달하는 구조로 변경
jhd7130 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/nextstep/courses/domain/coverimage/CoverImages.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 nextstep.courses.domain.coverimage; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashSet; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class CoverImages { | ||
|
||
private Set<CoverImage> coverImages = new HashSet<>(); | ||
|
||
public CoverImages() { | ||
} | ||
|
||
public CoverImages(Set<CoverImage> coverImages) { | ||
this.coverImages = coverImages; | ||
} | ||
public CoverImages(CoverImage coverImages) { | ||
this.coverImages.add(coverImages); | ||
} | ||
|
||
public void add(CoverImage coverImage) { | ||
this.coverImages.add(coverImage); | ||
} | ||
public void addAll(CoverImages coverImages) { | ||
this.coverImages.addAll(coverImages.coverImages); | ||
} | ||
|
||
public boolean has(CoverImage coverImage) { | ||
return this.coverImages.contains(coverImage); | ||
} | ||
public List<CoverImage> coverImages() { | ||
return new ArrayList<>(coverImages); | ||
} | ||
} |
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: 7 additions & 0 deletions
7
src/main/java/nextstep/courses/domain/coverimage/LectureCoverImageMappingRepository.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,7 @@ | ||
package nextstep.courses.domain.coverimage; | ||
|
||
import nextstep.courses.domain.lectures.LectureEntity; | ||
|
||
public interface LectureCoverImageMappingRepository { | ||
void save(LectureEntity lecture, CoverImages coverImages); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package nextstep.courses.domain.lectures; | ||
|
||
import nextstep.courses.domain.Students; | ||
import nextstep.users.domain.NsUser; | ||
|
||
public interface Lecture { | ||
|
||
boolean isFree(); | ||
boolean recruiting(); | ||
void enrollment(NsUser nsUser); | ||
boolean isRecruiting(); | ||
void canEnrollment(NsUser nsUser, Students selectedStudents); | ||
void enrollment(NsUser nsUser, Students selectedStudents); | ||
Lecture recruitingStart(); | ||
Lecture start(); | ||
Integer numberOfStudent(); | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍