feat 电子围栏数据配置

This commit is contained in:
2025-09-29 14:56:58 +08:00
parent f8705e7137
commit 0b66033b25
14 changed files with 462 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Device.Entities;
/// <summary>
/// 设备与电子围栏关系表
/// </summary>
[SugarTable("ElectronicFenceDeviceRelationEntity")]
[SugarIndex("idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode", new[] { nameof(DeviceCode), nameof(EFenceCode) }, new[] { OrderByType.Asc, OrderByType.Asc }, false)]
public class EFenceDeviceRelationEntity : SugarBaseEntity, ISoftDeleted
{
/// <summary>
/// 设备ID
/// </summary>
[SugarColumn(IsNullable = false)]
public Guid DeviceCode { get; set; }
/// <summary>
/// 电子围栏ID
/// </summary>
[SugarColumn(IsNullable = false)]
public Guid EFenceCode { get; set; }
public bool IsDeleted { get; set; }
}

View File

@@ -0,0 +1,28 @@
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
namespace Dlhis.Entity.Device.Entities;
/// <summary>
/// 电子围栏
/// </summary>
[SugarTable("ElectronicFence")]
public class EFenceEntity : SugarBaseEntity
{
[AdaptIgnore(MemberSide.Source)]
[SugarColumn(IsNullable = false)]
public Guid Code { get; set; }
/// <summary>
/// 围栏名称
/// </summary>
[SugarColumn(IsNullable = false)]
public string Name { get; set; }
/// <summary>
/// 描述/备注
/// </summary>
[SugarColumn(IsNullable = true, Length = 1000)]
public string Description { get; set; }
}