兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace AIK.Models.ApiModels.Version
{
public class AppVersionInfo
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("versionName")]
public string VersionName { get; set; } = string.Empty;
[JsonPropertyName("fileUrl")]
public string FileUrl { get; set; } = string.Empty;
[JsonPropertyName("createUser")]
public string CreateUser { get; set; } = string.Empty;
[JsonPropertyName("createTime")]
public string CreateTime { get; set; } = string.Empty; // 也可转为 DateTime,见下方说明
[JsonPropertyName("force")]
public bool Force { get; set; }
[JsonPropertyName("versionCode")]
public string VersionCode { get; set; } = string.Empty; // 注意:虽然是数字字符串,但字段名为 "code",常用于比对
[JsonPropertyName("versionContent")]
public string VersionContent { get; set; } = string.Empty;
[JsonPropertyName("versionEnContent")]
public string VersionEnContent { get; set; } = string.Empty;
[JsonPropertyName("type")]
public string Type { get; set; } = string.Empty;
[JsonPropertyName("fileUrlB")]
public string? FileUrlB { get; set; } // 允许 null
}
}