feat: 复刻小程序四大主页面与底部导航(UI 优先,本地 mock)

This commit is contained in:
AndyChen1024
2026-09-09 19:57:47 +08:00
parent f240682281
commit c80fb31eb1
53 changed files with 2778 additions and 68 deletions

View File

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

View File

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

View File

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

View File

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