chore: core 多模块骨架
This commit is contained in:
8
IosClientKit/Sources/CoreDomain/HomeRepository.swift
Normal file
8
IosClientKit/Sources/CoreDomain/HomeRepository.swift
Normal file
@@ -0,0 +1,8 @@
|
||||
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>
|
||||
}
|
||||
Reference in New Issue
Block a user