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

10 lines
341 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 CheckinRepository: Sendable {
/// 观察打卡数据。
func observeCheckin() -> AsyncThrowingStream<CheckinRecord, Error>
/// 提交打卡状态。
func submitCheckin(status: CheckinStatus) async throws
}