-
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.
* [#155] feat: 참고 링크를 사람별로 관리하도록 변경 * [#148] fix: 카테고리에서 블로그 의존성을 제거함에 따라 예외 메세지 변경 * test: 계층화 카테고리 테스트코드 추가
- Loading branch information
1 parent
948c945
commit 4412fbe
Showing
15 changed files
with
118 additions
and
203 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
6 changes: 2 additions & 4 deletions
6
src/main/java/com/mallang/reference/application/command/SaveReferenceLinkCommand.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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
package com.mallang.reference.application.command; | ||
|
||
import com.mallang.auth.domain.Member; | ||
import com.mallang.blog.domain.Blog; | ||
import com.mallang.reference.domain.ReferenceLink; | ||
import jakarta.annotation.Nullable; | ||
|
||
public record SaveReferenceLinkCommand( | ||
Long memberId, | ||
String blogName, | ||
String url, | ||
String title, | ||
@Nullable String memo | ||
) { | ||
public ReferenceLink toReferenceLink(Member member, Blog blog) { | ||
return new ReferenceLink(url, title, memo, member, blog); | ||
public ReferenceLink toReferenceLink(Member member) { | ||
return new ReferenceLink(url, title, memo, member); | ||
} | ||
} |
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
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.