punchnet-macos/punchnet/Shared/Models/AppUpgradeInfo.swift
2026-04-17 15:18:08 +08:00

33 lines
842 B
Swift

//
// AppUpgradeInfo.swift
// punchnet
//
// Created by on 2026/4/17.
//
import Foundation
//
struct AppUpgradeInfo: Codable, Identifiable {
var id = UUID().uuidString
let hasUpdate: Bool
let latestVersion: String
let latestBuild: Int
let forceUpdate: Bool
let downloadUrl: String
let releaseNotes: String
let minSupportedVersion: String
let publishTime: Int
enum CodingKeys: String, CodingKey {
case hasUpdate = "has_update"
case latestVersion = "latest_version"
case latestBuild = "latest_build"
case forceUpdate = "force_update"
case downloadUrl = "download_url"
case releaseNotes = "release_notes"
case minSupportedVersion = "min_supported_version"
case publishTime = "publish_time"
}
}