mirror of https://github.com/usbharu/Hideout.git
feat: Instanceのエンティティを追加
This commit is contained in:
parent
7c105e946c
commit
6dbac87d23
|
@ -0,0 +1,15 @@
|
||||||
|
package dev.usbharu.hideout.core.domain.model.instance
|
||||||
|
|
||||||
|
data class Instance(
|
||||||
|
val id: Long,
|
||||||
|
val name: String,
|
||||||
|
val description: String,
|
||||||
|
val url: String,
|
||||||
|
val iconUrl: String,
|
||||||
|
val sharedInbox: String,
|
||||||
|
val software: String,
|
||||||
|
val version: String,
|
||||||
|
val isBlocked: Boolean,
|
||||||
|
val isMuting: Boolean,
|
||||||
|
val moderationNote: String
|
||||||
|
)
|
|
@ -0,0 +1,7 @@
|
||||||
|
package dev.usbharu.hideout.core.domain.model.instance
|
||||||
|
|
||||||
|
interface InstanceRepository {
|
||||||
|
suspend fun save(instance: Instance): Instance
|
||||||
|
suspend fun findById(id: Long): Instance
|
||||||
|
suspend fun delete(instance: Instance)
|
||||||
|
}
|
Loading…
Reference in New Issue