-
Notifications
You must be signed in to change notification settings - Fork 308
π 4λ¨κ³ - μκ°μ μ²(μꡬμ¬ν λ³κ²½) #808
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
504ad4d
docs : λͺ©ν λ° μꡬμ¬ν md νμΌ μμ±
chanani 487809c
refactor : νΌλλ°± λ°μ λ΄μ© μμ μ§ν(Session, SessionRecordμμ μ§μ λ³ννμ§ μκ³ Mapperβ¦
chanani 4260bb7
refactor : Session ν΄λμ€μμ μμ λ°λ SessionCore μΈμ€ν΄μ€ λ³μλ‘ μ΄λ, BaseEntity μμ±β¦
chanani 48db9b3
refactor : SessionCoreFacade interface μμ±, SessionCoreV2 μμ±
chanani cb43233
refactor : κ°μ μ§ν μν enum μ 보 λ³κ²½, SessionCoreV2 ν΄λμ€μ λͺ¨μ§ μν κ° μΆκ° λ° ν
μ€νΈ μ½β¦
chanani b43e419
feat : μ»€λ² μ΄λ―Έμ§ μΌκΈμ»¬λμ
μμ± λ° ν
μ€νΈ μ½λ μμ±
chanani a080189
refactor : κ°μμ μ¬λ¬ μ΄λ―Έμ§ λ±λ‘ν μ μλλ‘ μμ
chanani ec74984
feat : μ λ° μ¬λΆ, μΉμΈ μ¬λΆ μν Enum μμ±
chanani adf6a1b
refactor : μ€ν€λ§, sql μμ , Jdbc μκ°μ μ² λ±λ‘, μ‘°ν μμ
chanani 1610636
refactor : enumμ λ©μμ§ λ³΄λΌ μ μλλ‘ λ©μλ μΆκ°
chanani 8fffc11
refactor : SessionCoreFacade λ©μλ μ κ±°, SessionCoreV2λ₯Ό SessionCoreλ‘ λ¦¬ν©ν°λ§
chanani dabddc0
refactor : μκ°μ μ² κ²μ¦λ‘μ§ Sessionμμ EnrollmentApply ν΄λμ€λ‘ μ΄λ λ° ν
μ€νΈ μ½λ μΌκ΄ μμ β¦
chanani dbc998d
docs : pr λ§ν¬ κΈ°μ
λ° README μμ
chanani 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 hidden or 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 hidden or 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,43 @@ | ||
| # π 4λ¨κ³ - μκ°μ μ²(μꡬμ¬ν λ³κ²½) | ||
|
|
||
| *** | ||
|
|
||
| ## μ½λ 리뷰 | ||
|
|
||
| > PR λ§ν¬ : [#808](https://github.com/next-step/java-lms/pull/808) | ||
|
|
||
| ## λμ νμ΅ λͺ©ν | ||
|
|
||
| ### 1. μ»΄νμΌ μ€λ₯κ° λ°μνμ§ μλλ‘ λ¦¬ν©ν°λ§νμ. | ||
|
|
||
| - νλ‘κ·Έλλ° μꡬμ¬νμμμ κ°μ΄ 리ν©ν°λ§ν λ μ»΄νμΌ μλ¬κ° μ΅λν λ°μνμ§ μλλ‘ κ΅¬ννλ€. | ||
| - μ΄ λͺ©νλ₯Ό μ§ν€λ €λ©΄ κΈ°μ‘΄ μ½λλ₯Ό λ°λ‘ μμ νλ κ²μ΄ μλ κΈ°μ‘΄ μ½λλ₯Ό 볡μ¬ν λ€ μ μ§μ μΌλ‘ μ½λλ₯Ό μμ ν΄ λμκ°λ€. | ||
|
|
||
| ## ν΅μ¬ νμ΅ λͺ©ν | ||
|
|
||
| - DB ν μ΄λΈμ΄ λ³κ²½λ λλ μ€νΈλκΈλ¬ ν¨ν΄μ μ μ©ν΄ μ μ§μ μΈ λ¦¬ν©ν°λ§μ μ°μ΅νλ€. | ||
| - [μ€νΈλκΈλ¬(κ΅μ΄μ) ν¨ν΄ - λ§ν΄ νμΈλ¬](https://martinfowler.com/bliki/StranglerFigApplication.html) | ||
| - [μ€νΈλκΈλ¬ 무νκ³Ό ν¨ν΄](https://learn.microsoft.com/ko-kr/azure/architecture/patterns/strangler-fig) | ||
|
|
||
| ## λ³κ²½λ κΈ°λ₯ μꡬμ¬ν | ||
|
|
||
| ### κ°μ μκ°μ μ²μ κ°μ μνκ° λͺ¨μ§μ€μΌ λλ§ κ°λ₯νλ€. | ||
|
|
||
| - κ°μκ° μ§ν μ€μΈ μνμμλ μκ°μ μ²μ΄ κ°λ₯ν΄μΌ νλ€. | ||
| - κ°μ μ§ν μν(μ€λΉμ€, μ§νμ€, μ’ λ£)μ λͺ¨μ§ μν(λΉλͺ¨μ§μ€, λͺ¨μ§μ€)λ‘ μν κ°μ λΆλ¦¬ν΄μΌ νλ€. | ||
|
|
||
| ### κ°μλ κ°μ μ»€λ² μ΄λ―Έμ§ μ 보λ₯Ό κ°μ§λ€. | ||
|
|
||
| - κ°μλ νλ μ΄μμ μ»€λ² μ΄λ―Έμ§λ₯Ό κ°μ§ μ μλ€. | ||
|
|
||
| ### κ°μ¬κ° μΉμΈνμ§ μμλ μκ° μ μ²νλ λͺ¨λ μ¬λμ΄ μκ° κ°λ₯νλ€. | ||
|
|
||
| - μ°μνν ν¬μ½μ€(무λ£), μ°μνν ν¬μΊ ν Pro(μ λ£)μ κ°μ΄ μ λ°λ μΈμλ§ μκ° κ°λ₯ν΄μΌ νλ€. | ||
| - κ°μ¬λ μκ°μ μ²ν μ¬λ μ€ μ λ°λ μΈμμ λν΄μλ§ μκ° μΉμΈμ΄ κ°λ₯ν΄μΌ νλ€. | ||
| - κ°μ¬λ μκ°μ μ²ν μ¬λ μ€ μ λ°λμ§ μμ μ¬λμ μκ°μ μ·¨μν μ μμ΄μΌ νλ€. | ||
|
|
||
| ## νλ‘κ·Έλλ° μꡬμ¬ν | ||
|
|
||
| - 리ν©ν°λ§ν λ μ»΄νμΌ μλ¬μ κΈ°μ‘΄μ λ¨μ ν μ€νΈμ μ€ν¨λ₯Ό μ΅μννλ©΄μ μ μ§μ μΈ λ¦¬ν©ν°λ§μ΄ κ°λ₯νλλ‘ νλ€. | ||
| - DB ν μ΄λΈμ λ°μ΄ν°κ° μ‘΄μ¬νλ€λ κ°μ νμ 리ν©ν°λ§ν΄μΌ νλ€. | ||
| - μ¦, κΈ°μ‘΄μ μμΈ λ°μ΄ν°λ₯Ό μ κ±°νμ§ μμ μνλ‘ λ¦¬ν©ν°λ§ ν΄μΌ νλ€. |
This file contains hidden or 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 hidden or 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
4 changes: 3 additions & 1 deletion
4
src/main/java/nextstep/courses/domain/image/CoverImageRepository.java
This file contains hidden or 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,8 +1,10 @@ | ||
| package nextstep.courses.domain.image; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public interface CoverImageRepository { | ||
|
|
||
| int save(CoverImage coverImage); | ||
|
|
||
| CoverImage findById(Long id); | ||
| List<CoverImage> findBySessionId(Long id); | ||
| } |
34 changes: 34 additions & 0 deletions
34
src/main/java/nextstep/courses/domain/image/CoverImages.java
This file contains hidden or 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,34 @@ | ||
| package nextstep.courses.domain.image; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| public class CoverImages { | ||
|
|
||
| private List<CoverImage> coverImages; | ||
|
|
||
| public CoverImages() { | ||
| this.coverImages = new ArrayList<>(); | ||
| } | ||
|
|
||
| public CoverImages(CoverImage... coverImage) { | ||
| this.coverImages = List.of(coverImage); | ||
| } | ||
|
|
||
| public CoverImages(List<CoverImage> coverImages) { | ||
| this.coverImages = coverImages; | ||
| } | ||
|
|
||
| public void add(CoverImage coverImage) { | ||
| coverImages.add(coverImage); | ||
| } | ||
|
|
||
| public int size() { | ||
| return coverImages.size(); | ||
| } | ||
|
|
||
| public List<CoverImage> getCoverImages() { | ||
| return coverImages; | ||
| } | ||
|
|
||
| } | ||
This file contains hidden or 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
28 changes: 28 additions & 0 deletions
28
src/main/java/nextstep/courses/domain/session/BaseEntity.java
This file contains hidden or 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,28 @@ | ||
| package nextstep.courses.domain.session; | ||
|
|
||
| import java.time.LocalDateTime; | ||
|
|
||
| public abstract class BaseEntity { | ||
|
|
||
| private final Long id; | ||
| private final LocalDateTime createdAt; | ||
| private final LocalDateTime updatedAt; | ||
|
|
||
| public BaseEntity(Long id, LocalDateTime createdAt, LocalDateTime updatedAt) { | ||
| this.id = id; | ||
| this.createdAt = createdAt; | ||
| this.updatedAt = updatedAt; | ||
| } | ||
|
|
||
| public Long getId() { | ||
| return id; | ||
| } | ||
|
|
||
| public LocalDateTime getCreatedAt() { | ||
| return createdAt; | ||
| } | ||
|
|
||
| public LocalDateTime getUpdatedAt() { | ||
| return updatedAt; | ||
| } | ||
| } |
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.
μΌκΈ μ½λ μ μ μ© π