31 lines
1.1 KiB
C#
31 lines
1.1 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;
|
|
|
|
[SugarTable(TableName = "DataPermissions")]
|
|
public class DataPermissionEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public AssignTypeEnumType AssignType { get; set; }
|
|
|
|
[SugarColumn(IsNullable = false)]
|
|
public string AssignValue { get; set; }
|
|
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceAssignmentTypeEnumType UniqueType { get; set; }
|
|
|
|
[SugarColumn(IsNullable = false)]
|
|
public Guid UniqueValue { get; set; }
|
|
|
|
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public DeviceTypeEnumType DeviceType { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string TenantId { get; set; }
|
|
} |