Files
ios-client/IosClientKit/Sources/CoreDomain/HomeRepository.swift
2026-09-14 21:10:44 +08:00

9 lines
364 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import CoreModel
/// Home 数据仓库协议(定义在 domain 层,实现放 CoreRepository)。
/// Kotlin: interface HomeRepository { fun observeHome(): Flow<HomeData> }
public protocol HomeRepository: Sendable {
/// Kotlin: Flow<HomeData> → Swift: AsyncThrowingStream<HomeData, Error>
func observeHome() -> AsyncThrowingStream<HomeData, Error>
}