feat: 定义仓库协议与用例(含会话)
This commit is contained in:
7
IosClientKit/Sources/CoreDomain/ProfileRepository.swift
Normal file
7
IosClientKit/Sources/CoreDomain/ProfileRepository.swift
Normal file
@@ -0,0 +1,7 @@
|
||||
import CoreModel
|
||||
|
||||
/// 个人资料仓库协议(定义在 domain 层,实现放 CoreRepository)。
|
||||
public protocol ProfileRepository: Sendable {
|
||||
/// Kotlin: Flow<UserProfile> → Swift: AsyncThrowingStream<UserProfile, Error>
|
||||
func observeProfile() -> AsyncThrowingStream<UserProfile, Error>
|
||||
}
|
||||
Reference in New Issue
Block a user