8 lines
305 B
Swift
8 lines
305 B
Swift
import CoreModel
|
||
|
||
/// 个人资料仓库协议(定义在 domain 层,实现放 CoreRepository)。
|
||
public protocol ProfileRepository: Sendable {
|
||
/// Kotlin: Flow<UserProfile> → Swift: AsyncThrowingStream<UserProfile, Error>
|
||
func observeProfile() -> AsyncThrowingStream<UserProfile, Error>
|
||
}
|