feat: Instanceのエンティティを追加

This commit is contained in:
usbharu 2023-11-18 00:35:52 +09:00
parent 7c105e946c
commit 6dbac87d23
2 changed files with 22 additions and 0 deletions

View File

@ -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
)

View File

@ -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)
}