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