fix sys模块代码迁移
This commit is contained in:
32
Src/Dlhis.Entity/Sys/Entities/DevicePermissionEntity.cs
Normal file
32
Src/Dlhis.Entity/Sys/Entities/DevicePermissionEntity.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Dlhis.Entity.Sys.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 设备权限
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "DevicePermission", TableDescription = "设备权限")]
|
||||
public class DevicePermissionEntity : ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备权限类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "设备权限类型", SqlParameterDbType = typeof(DevicePermissionTypeEnumType))]
|
||||
public DevicePermissionTypeEnumType 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; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
88
Src/Dlhis.Entity/Sys/Entities/MenuEntity.cs
Normal file
88
Src/Dlhis.Entity/Sys/Entities/MenuEntity.cs
Normal file
@@ -0,0 +1,88 @@
|
||||
using Dlhis.Entity.Sys.Enums;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 菜单
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "Menu", TableDescription = "菜单")]
|
||||
public class MenuEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上级
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "上级")]
|
||||
public string PCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "标题")]
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "图标")]
|
||||
public string Icon { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 路由地址
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "路由地址")]
|
||||
public string Route { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限标识
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "权限标识")]
|
||||
public string Permission { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为外链
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "是否为外链")]
|
||||
public bool IsLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "序号")]
|
||||
public int Sequence { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否可见
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "是否可见")]
|
||||
public bool Visible { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 菜单类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "菜单类型")]
|
||||
public MenuEnumType MenuType { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 平台类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "平台类型")]
|
||||
public PlatformEnumType Platform { get; set; }
|
||||
}
|
||||
36
Src/Dlhis.Entity/Sys/Entities/MenuPermissionEntity.cs
Normal file
36
Src/Dlhis.Entity/Sys/Entities/MenuPermissionEntity.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Dlhis.Entity.Sys.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 菜单权限
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "MenuPermission", TableDescription = "菜单权限")]
|
||||
public class MenuPermissionEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
||||
{
|
||||
/// <summary>
|
||||
/// 权限类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "权限类型", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public MenuPermissionTypeEnumType UniqueType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "类型值")]
|
||||
public string UniqueValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单code
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "菜单code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
16
Src/Dlhis.Entity/Sys/Entities/RoleEntity.cs
Normal file
16
Src/Dlhis.Entity/Sys/Entities/RoleEntity.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
[SugarTable(TableName = "Roles")]
|
||||
public class RoleEntity
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string NormalizedName { get; set; }
|
||||
|
||||
public string ConcurrencyStamp { get; set; }
|
||||
}
|
||||
38
Src/Dlhis.Entity/Sys/Entities/UserEntity.cs
Normal file
38
Src/Dlhis.Entity/Sys/Entities/UserEntity.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Entities;
|
||||
|
||||
[SugarTable("Users")]
|
||||
public class UserEntity
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
public string NormalizedUserName { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string NormalizedEmail { get; set; }
|
||||
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
public string PasswordHash { get; set; }
|
||||
|
||||
public string SecurityStamp { get; set; }
|
||||
|
||||
public string ConcurrencyStamp { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public string PhoneNumberConfirmed { get; set; }
|
||||
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
|
||||
public bool LockoutEnd { get; set; }
|
||||
|
||||
public bool LockoutEnabled { get; set; }
|
||||
|
||||
public int AccessFailedCount { get; set; }
|
||||
}
|
||||
22
Src/Dlhis.Entity/Sys/Enums/DevicePermissionTypeEnumType.cs
Normal file
22
Src/Dlhis.Entity/Sys/Enums/DevicePermissionTypeEnumType.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 设备权限类型
|
||||
/// </summary>
|
||||
[Description("设备权限类型")]
|
||||
public enum DevicePermissionTypeEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备组
|
||||
/// </summary>
|
||||
[Description("设备组")]
|
||||
Group = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 人员
|
||||
/// </summary>
|
||||
[Description("人员")]
|
||||
Person = 2
|
||||
}
|
||||
28
Src/Dlhis.Entity/Sys/Enums/MenuEnumType.cs
Normal file
28
Src/Dlhis.Entity/Sys/Enums/MenuEnumType.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 菜单类型
|
||||
/// </summary>
|
||||
[Description("菜单类型")]
|
||||
public enum MenuEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 目录
|
||||
/// </summary>
|
||||
[Description("目录")]
|
||||
Folder = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 菜单
|
||||
/// </summary>
|
||||
[Description("菜单")]
|
||||
Menu = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 按钮
|
||||
/// </summary>
|
||||
[Description("按钮")]
|
||||
Button = 3
|
||||
}
|
||||
34
Src/Dlhis.Entity/Sys/Enums/MenuPermissionTypeEnumType.cs
Normal file
34
Src/Dlhis.Entity/Sys/Enums/MenuPermissionTypeEnumType.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 权限类型
|
||||
/// </summary>
|
||||
[Description("权限类型")]
|
||||
public enum MenuPermissionTypeEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户
|
||||
/// </summary>
|
||||
[Description("用户")]
|
||||
User = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 角色
|
||||
/// </summary>
|
||||
[Description("角色")]
|
||||
Role = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 组别
|
||||
/// </summary>
|
||||
[Description("组别")]
|
||||
Group = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 部门
|
||||
/// </summary>
|
||||
[Description("部门")]
|
||||
Department = 4
|
||||
}
|
||||
22
Src/Dlhis.Entity/Sys/Enums/PlatformEnumType.cs
Normal file
22
Src/Dlhis.Entity/Sys/Enums/PlatformEnumType.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Sys.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 平台类型
|
||||
/// </summary>
|
||||
[Description("平台配型")]
|
||||
public enum PlatformEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// Admin
|
||||
/// </summary>
|
||||
[Description("PC后台")]
|
||||
PCAdmin = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 用户手机端
|
||||
/// </summary>
|
||||
[Description("用户手机端")]
|
||||
UserMobile = 2,
|
||||
}
|
||||
Reference in New Issue
Block a user