mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 15:01:09 +00:00
feat: Instanceのエンティティを追加
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user