feat(admin): add admin role type management
1. 新增后台角色类型枚举AdminRoleTypeEnum 2. 为AdminRole实体添加角色类型字段并设置默认值 3. 新增/更新管理员角色相关DTO的角色类型属性 4. 完善权限服务中的角色增删改查逻辑,增加系统角色保护校验 5. 修复任务消费中角色类型存储为枚举字符串的问题,改为存储枚举值 6. 新增初始化角色类型的SQL脚本
This commit is contained in:
21
QYZH.InteractiveMagazine.Models/Enum/AdminRoleTypeEnum.cs
Normal file
21
QYZH.InteractiveMagazine.Models/Enum/AdminRoleTypeEnum.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Enum;
|
||||
|
||||
/// <summary>
|
||||
/// 后台角色类型枚举
|
||||
/// </summary>
|
||||
public enum AdminRoleTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 普通角色
|
||||
/// </summary>
|
||||
[Description("普通角色")]
|
||||
Normal = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 系统角色
|
||||
/// </summary>
|
||||
[Description("系统角色")]
|
||||
System = 1
|
||||
}
|
||||
Reference in New Issue
Block a user