forked from FONE1light/fone-backend-jdsl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FO-1011] profileSns/profileImage 집교곱 현상 제거하기 위해 profileSns, profileI…
…mage OneToMany 관계 제거 (FONE1light#437)
- Loading branch information
1 parent
cf03373
commit 04433fe
Showing
16 changed files
with
351 additions
and
180 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
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
11 changes: 11 additions & 0 deletions
11
server/src/main/kotlin/com/fone/profile/domain/repository/ProfileImageRepository.kt
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,11 @@ | ||
package com.fone.profile.domain.repository | ||
|
||
import com.fone.profile.domain.entity.ProfileImage | ||
|
||
interface ProfileImageRepository { | ||
suspend fun saveAll(images: List<ProfileImage>): List<ProfileImage> | ||
|
||
suspend fun findAll(profileId: Long): List<ProfileImage> | ||
|
||
suspend fun deleteByProfileId(profileId: Long): Int | ||
} |
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
11 changes: 11 additions & 0 deletions
11
server/src/main/kotlin/com/fone/profile/domain/repository/ProfileSnsRepository.kt
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,11 @@ | ||
package com.fone.profile.domain.repository | ||
|
||
import com.fone.profile.domain.entity.ProfileSns | ||
|
||
interface ProfileSnsRepository { | ||
suspend fun saveAll(urls: Set<ProfileSns>): Set<ProfileSns> | ||
|
||
suspend fun findAll(profileId: Long): Set<ProfileSns> | ||
|
||
suspend fun deleteByProfileId(profileId: Long): Int | ||
} |
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.