fix tenantId

This commit is contained in:
2024-07-05 18:40:23 +08:00
parent f8db5f99ba
commit 15fa834e8e

View File

@@ -1,5 +1,6 @@
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;
@@ -7,7 +8,7 @@ using SqlSugar.DbConvert;
namespace Dlhis.Entity.Sys.Entities;
[SugarTable(TableName = "DataPermissions")]
public class DataPermissionEntity : SugarBaseEntity
public class DataPermissionEntity : SugarBaseEntity, ITenantId
{
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public AssignTypeEnumType AssignType { get; set; }
@@ -24,4 +25,7 @@ public class DataPermissionEntity : SugarBaseEntity
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceTypeEnumType DeviceType { get; set; }
/// <inheritdoc />
public string TenantId { get; set; }
}