Skip to content

Commit

Permalink
[#25] refactor(url -> link): 프론트 요청으로 인한 link로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-Ha committed Oct 1, 2022
1 parent dc5657f commit 2f18158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/com/yapp/web2/domain/bookmark/BookmarkDto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BookmarkDto {
fun addBookmarkDtoToPersonalBookmark(bookmarkDto: AddBookmarkDto, account: Account): BookmarkInterface {
return PersonalBookmark(
account,
bookmarkDto.url,
bookmarkDto.link,
bookmarkDto.title,
bookmarkDto.image,
bookmarkDto.description,
Expand All @@ -26,13 +26,13 @@ class BookmarkDto {
}

fun addBookmarkDtoToBookmark(bookmarkDto: AddBookmarkDto, account: Account): Bookmark {
return Bookmark(account, bookmarkDto.url, bookmarkDto.title, bookmarkDto.image, bookmarkDto.description, bookmarkDto.remind)
return Bookmark(account, bookmarkDto.link, bookmarkDto.title, bookmarkDto.image, bookmarkDto.description, bookmarkDto.remind)
}

fun addBookmarkDtoToSharedBookmark(bookmarkDto: AddBookmarkDto, account: Account, folder: Folder): BookmarkInterface {
return SharedBookmark(
account,
bookmarkDto.url,
bookmarkDto.link,
bookmarkDto.title,
bookmarkDto.image,
bookmarkDto.description,
Expand All @@ -56,7 +56,7 @@ class BookmarkDto {
data class AddBookmarkDto(

@ApiModelProperty(value = "북마크 url", required = true, example = "https://www.naver.com")
var url: String,
var link: String,

@ApiModelProperty(value = "북마크 제목", example = "Bookmark Title")
var title: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class SharedBookmarkServiceTest {

// then
assertAll(
{Assertions.assertThat(actual.link).isEqualTo(testDto.url)},
{Assertions.assertThat(actual.link).isEqualTo(testDto.link)},
{Assertions.assertThat(actual.title).isEqualTo(testDto.title)},
{Assertions.assertThat(actual.image).isEqualTo(testDto.image)},
{Assertions.assertThat(actual.image).isEqualTo(testDto.image)},
Expand Down

0 comments on commit 2f18158

Please sign in to comment.