10 lines
341 B
Swift
10 lines
341 B
Swift
import CoreModel
|
||
|
||
/// 打卡数据仓库协议(定义在 domain 层,实现放 CoreRepository)。
|
||
public protocol CheckinRepository: Sendable {
|
||
/// 观察打卡数据。
|
||
func observeCheckin() -> AsyncThrowingStream<CheckinRecord, Error>
|
||
/// 提交打卡状态。
|
||
func submitCheckin(status: CheckinStatus) async throws
|
||
}
|