refactor 文件版本重构

This commit is contained in:
2024-04-02 19:56:08 +08:00
parent 318491d2f1
commit b63a0b4938
23 changed files with 332 additions and 651 deletions

View File

@@ -1,48 +0,0 @@
using Kurisu.SqlSugar;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dlhis.Entity.Common;
/// <summary>
/// Apk文件表
/// </summary>
[SugarTable(TableName = "ApkFIile", TableDescription = "Apk文件表")]
public class ApkFileEntity : SugarBaseEntity
{
/// <summary>
/// 文件名称
/// </summary>
[SugarColumn(ColumnDescription = "文件名称")]
public string Name { get; set; }
/// <summary>
/// 版本号
/// </summary>
[SugarColumn(ColumnDescription = "版本号")]
public int VersionCode { get; set; }
/// <summary>
/// 版本名称
/// </summary>
[SugarColumn(ColumnDescription = "版本名称")]
public string VersionName { get; set; }
/// <summary>
/// 修改信息
/// </summary>
[SugarColumn(ColumnDescription = "修改信息")]
public string UpdateMessage { get; set; }
/// <summary>
/// 产品代码
/// </summary>
[SugarColumn(ColumnDescription = "产品代码")]
public string ProductCode { get; set; }
}

View File

@@ -0,0 +1,43 @@
using Kurisu.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Common;
/// <summary>
/// 文件版本信息
/// </summary>
[SugarTable(TableName = "FileVersion", TableDescription = "文件版本信息")]
public class FileVersionEntity : SugarBaseEntity
{
/// <summary>
/// 文件名称
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "文件名称")]
public string Name { get; set; }
/// <summary>
/// 文件code
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "文件code", UniqueGroupNameList = new[] { "idx_FileVersion_Code" })]
public string Code { get; set; }
/// <summary>
/// 版本号
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "版本号")]
public int Version { get; set; }
/// <summary>
/// 描述信息
/// </summary>
[SugarColumn(ColumnDescription = "描述信息")]
public string Description { get; set; }
/// <summary>
/// 文件地址
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "文件地址")]
public string Url { get; set; }
}