chore: core 多模块骨架
This commit is contained in:
19
IosClientKit/Sources/CoreModel/HomeData.swift
Normal file
19
IosClientKit/Sources/CoreModel/HomeData.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import Foundation
|
||||
|
||||
/// Home 页面的聚合数据(对应 Android 端 HomeData)。
|
||||
public struct HomeData: Identifiable, Hashable, Sendable {
|
||||
public let id: String
|
||||
/// 顶部问候语,例如「早上好,Andy」。
|
||||
public let greeting: String
|
||||
/// 今日打卡摘要,例如「已完成 2 / 4」。
|
||||
public let summary: String
|
||||
/// 今日待打卡的习惯列表。
|
||||
public let habits: [Habit]
|
||||
|
||||
public init(id: String, greeting: String, summary: String, habits: [Habit]) {
|
||||
self.id = id
|
||||
self.greeting = greeting
|
||||
self.summary = summary
|
||||
self.habits = habits
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user