feat 点位图
This commit is contained in:
44
Src/Dlhis.Entity/Basic/Entity/PointMapDetailEntity.cs
Normal file
44
Src/Dlhis.Entity/Basic/Entity/PointMapDetailEntity.cs
Normal 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; }
|
||||
}
|
||||
36
Src/Dlhis.Entity/Basic/Entity/PointMapEntity.cs
Normal file
36
Src/Dlhis.Entity/Basic/Entity/PointMapEntity.cs
Normal 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; }
|
||||
}
|
||||
16
Src/Dlhis.Entity/Basic/Enums/PointMapDetailEnumType.cs
Normal file
16
Src/Dlhis.Entity/Basic/Enums/PointMapDetailEnumType.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 点位图数据类型
|
||||
/// </summary>
|
||||
[Description("点位图数据类型")]
|
||||
public enum PointMapDetailEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备
|
||||
/// </summary>
|
||||
[Description("设备")]
|
||||
Device = 1,
|
||||
}
|
||||
Reference in New Issue
Block a user