Files
2026-09-14 21:10:44 +08:00

16 lines
483 B
Swift
Raw Permalink 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 Foundation
/// 示例网络 DTO(与领域 Model 分离,对应 Kotlin @Serializable 的 data class)。
/// 注意:DTO 只承载接口字段,不直接进入 UI;领域层用 CoreModel.HomeData。
public struct HomeDTO: Codable, Sendable {
public let id: String
public let greeting: String
public let habits: [HabitDTO]
}
public struct HabitDTO: Codable, Sendable {
public let id: String
public let title: String
public let checkedIn: Bool
}