51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
using Dlhis.Entity.Device.Enums;
|
|
using Dlhis.Entity.Sys.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Sys.Entities;
|
|
|
|
/// <summary>
|
|
/// 设备权限
|
|
/// </summary>
|
|
[SugarTable(TableName = "DevicePermission", TableDescription = "设备权限")]
|
|
public class DevicePermissionEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
|
{
|
|
/// <summary>
|
|
/// 分配权限类型(User,Role,Group...)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "分配权限类型", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public AssignTypeEnumType AssignType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分配值
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "分配值")]
|
|
public string AssignValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备权限类型(Device/DeviceGroup)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备权限类型", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceAssignmentTypeEnumType UniqueType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 类型值
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "类型值")]
|
|
public Guid UniqueValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备数据类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备数据类型", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceTypeEnumType Type { get; set; }
|
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public bool IsDeleted { get; set; }
|
|
} |