feat: 复刻小程序四大主页面与底部导航(UI 优先,本地 mock)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.mingyuan.android_client.core.domain.repository
|
||||
|
||||
import com.mingyuan.android_client.core.model.CheckinRecord
|
||||
import com.mingyuan.android_client.core.model.CheckinStatus
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface CheckinRepository {
|
||||
fun observeCheckin(): Flow<CheckinRecord>
|
||||
|
||||
suspend fun submitCheckin(status: CheckinStatus)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.mingyuan.android_client.core.domain.repository
|
||||
|
||||
import com.mingyuan.android_client.core.model.HomeData
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface HomeRepository {
|
||||
fun observeHome(): Flow<HomeData>
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.mingyuan.android_client.core.domain.repository
|
||||
|
||||
import com.mingyuan.android_client.core.model.PlanRecord
|
||||
import com.mingyuan.android_client.core.model.PlanSubmitData
|
||||
import com.mingyuan.android_client.core.model.PlanType
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface PlanRepository {
|
||||
fun observePlan(type: PlanType): Flow<PlanRecord>
|
||||
|
||||
fun observePlanSubmit(type: PlanType, periodKey: String): Flow<PlanSubmitData>
|
||||
|
||||
suspend fun savePlan(
|
||||
type: PlanType,
|
||||
periodKey: String,
|
||||
content: String,
|
||||
attachments: List<String>,
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.mingyuan.android_client.core.domain.repository
|
||||
|
||||
import com.mingyuan.android_client.core.model.UserProfile
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface ProfileRepository {
|
||||
fun observeProfile(): Flow<UserProfile>
|
||||
|
||||
suspend fun deleteAccount()
|
||||
}
|
||||
Reference in New Issue
Block a user