feat: 「我的」页退出登录/登录接入会话状态

This commit is contained in:
AndyChen1024
2026-09-09 22:16:25 +08:00
parent c41c04ff23
commit 03410d7ea2
5 changed files with 53 additions and 34 deletions

View File

@@ -21,19 +21,6 @@ class FakeProfileRepository @Inject constructor() : ProfileRepository {
emitAll(profile)
}
override suspend fun deleteAccount() {
delay(300)
profile.value = seedProfile().copy(
displayName = "游客",
name = "",
studentId = "",
phone = null,
group = null,
avatarUrl = null,
classGroups = emptyList(),
)
}
private fun seedProfile() = UserProfile(
displayName = "张三",
name = "张三",

View File

@@ -5,6 +5,4 @@ import kotlinx.coroutines.flow.Flow
interface ProfileRepository {
fun observeProfile(): Flow<UserProfile>
suspend fun deleteAccount()
}