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; /// /// 设备权限 /// [SugarTable(TableName = "DevicePermission", TableDescription = "设备权限")] public class DevicePermissionEntity : SugarBaseEntity, ITenantId, ISoftDeleted { /// /// 分配权限类型(User,Role,Group...) /// [SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "分配权限类型", SqlParameterDbType = typeof(EnumToStringConvert))] public AssignTypeEnumType AssignType { get; set; } /// /// 分配值 /// [SugarColumn(ColumnDescription = "分配值")] public string AssignValue { get; set; } /// /// 设备权限类型(Device/DeviceGroup) /// [SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备权限类型", SqlParameterDbType = typeof(EnumToStringConvert))] public DeviceAssignmentTypeEnumType UniqueType { get; set; } /// /// 类型值 /// [SugarColumn(ColumnDescription = "类型值")] public Guid UniqueValue { get; set; } /// /// 设备数据类型 /// [SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备数据类型", SqlParameterDbType = typeof(EnumToStringConvert))] public DeviceTypeEnumType Type { get; set; } public string TenantId { get; set; } /// public bool IsDeleted { get; set; } }