feat 升级版本, 设备权限
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using Dlhis.Entity.Sys.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
@@ -8,25 +10,27 @@ namespace Dlhis.Entity.Sys.Entities;
|
||||
/// 设备权限
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "DevicePermission", TableDescription = "设备权限")]
|
||||
public class DevicePermissionEntity : ITenantId
|
||||
public class DevicePermissionEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
||||
{
|
||||
/// <summary>
|
||||
/// 人员档案
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "人员档案")]
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备权限类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备权限类型", SqlParameterDbType = typeof(DevicePermissionTypeEnumType))]
|
||||
public DevicePermissionTypeEnumType UniqueType { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备权限类型", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public DeviceAssignmentTypeEnumType UniqueType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "类型值")]
|
||||
public string UniqueValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备code")]
|
||||
public string Code { get; set; }
|
||||
[SugarColumn(ColumnDescription = "类型值")]
|
||||
public Guid UniqueValue { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user