mirror of https://github.com/usbharu/Hideout.git
13 lines
535 B
Kotlin
13 lines
535 B
Kotlin
package dev.usbharu.hideout.query
|
|
|
|
import dev.usbharu.hideout.domain.model.hideout.entity.User
|
|
|
|
interface FollowerQueryService {
|
|
suspend fun findFollowersById(id: Long): List<User>
|
|
suspend fun findFollowersByNameAndDomain(name: String, domain: String): List<User>
|
|
suspend fun findFollowingById(id: Long): List<User>
|
|
suspend fun findFollowingByNameAndDomain(name: String, domain: String): List<User>
|
|
suspend fun appendFollower(user: Long, follower: Long)
|
|
suspend fun removeFollower(user: Long, follower: Long)
|
|
}
|