feat 点位图

This commit is contained in:
2024-04-02 16:59:26 +08:00
parent 6d2384f93f
commit 318491d2f1
13 changed files with 426 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
using Dlhis.Entity.Basic.Enums;
using Kurisu.Core.DataAccess.Entity;
using Kurisu.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 点位图数据
/// </summary>
[SugarTable(TableName = "PointMapDetail", TableDescription = "点位图数据")]
public class PointMapDetailEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 点位图code
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "点位图code")]
public Guid PointMapCode { get; set; }
/// <summary>
/// 数据code
/// </summary>
public Guid UniqueCode { get; set; }
/// <summary>
/// 数据类型
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "数据类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public PointMapDetailEnumType Type { get; set; }
/// <summary>
/// XYZ
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "XYZ")]
public string Position { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
public string TenantId { get; set; }
}

View File

@@ -0,0 +1,36 @@
using Kurisu.Core.DataAccess.Entity;
using Kurisu.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 点位图
/// </summary>
[SugarTable(TableName = "PointMaps", TableDescription = "点位图")]
public class PointMapEntity : SugarBaseEntity, ITenantId, IImageUrl
{
/// <summary>
/// code
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "code")]
public Guid Code { get; set; }
/// <summary>
/// 位置名称
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "点位名称")]
public string Name { get; set; }
/// <summary>
/// 图
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "图片地址")]
public string ImageUrl { get; set; }
[SugarColumn(ColumnDescription = "备注")]
public string Remark { get; set; }
public string TenantId { get; set; }
}

View File

@@ -0,0 +1,16 @@
using System.ComponentModel;
namespace Dlhis.Entity.Basic.Enums;
/// <summary>
/// 点位图数据类型
/// </summary>
[Description("点位图数据类型")]
public enum PointMapDetailEnumType
{
/// <summary>
/// 设备
/// </summary>
[Description("设备")]
Device = 1,
}