Files
ios-client/IosClientKit/Sources/CoreDomain/PlanRepository.swift
2026-09-15 14:35:52 +08:00

9 lines
441 B
Swift
Raw 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
/// 计划数据仓库协议(定义在 domain 层,实现放 CoreRepository)。
public protocol PlanRepository: Sendable {
func observePlan(type: PlanType) -> AsyncThrowingStream<PlanRecord, Error>
func observePlanSubmit(type: PlanType, periodKey: String) -> AsyncThrowingStream<PlanSubmitData, Error>
func savePlan(type: PlanType, periodKey: String, content: String, attachments: [String]) async throws
}