feat 设备分组
This commit is contained in:
@@ -7,13 +7,13 @@ namespace Dlhis.Entity.Device.Entities;
|
||||
/// 设备组
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "DeviceGroup", TableDescription = "设备组")]
|
||||
public class DeviceGroupEntity : SugarBaseEntity, ITenantId
|
||||
public class DeviceGroupEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备组code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "设备组code")]
|
||||
public string Code { get; set; }
|
||||
public Guid Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备组名称
|
||||
@@ -21,6 +21,8 @@ public class DeviceGroupEntity : SugarBaseEntity, ITenantId
|
||||
[SugarColumn(ColumnDescription = "设备组名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
@@ -7,20 +7,22 @@ namespace Dlhis.Entity.Device.Entities;
|
||||
/// 设备组/设备关系
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "DeviceGroupRelationship", TableDescription = "设备组/设备关系")]
|
||||
public class DeviceGroupRelationshipEntity : SugarBaseEntity, ITenantId
|
||||
public class DeviceGroupRelationshipEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备组code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "设备组code")]
|
||||
public string GroupCode { get; set; }
|
||||
public Guid GroupCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "设备code")]
|
||||
public string DeviceCode { get; set; }
|
||||
public Guid DeviceCode { get; set; }
|
||||
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
@@ -39,4 +39,11 @@ public enum DeviceFuncEnumType
|
||||
/// </summary>
|
||||
[Description("二维码")]
|
||||
QrCode,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 布控
|
||||
/// </summary>
|
||||
[Description("布控")]
|
||||
Control,
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// identity-roles
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "Roles")]
|
||||
public class RoleEntity
|
||||
{
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// identity-user
|
||||
/// </summary>
|
||||
[SugarTable("Users")]
|
||||
public class UserEntity
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user