feat: 新增RBAC角色模板复制与初始化
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TakeoutSaaS.Application.Identity.Templates;
|
||||
|
||||
/// <summary>
|
||||
/// 角色模板定义。
|
||||
/// </summary>
|
||||
public sealed record RoleTemplateDefinition
|
||||
{
|
||||
/// <summary>
|
||||
/// 模板编码(唯一键)。
|
||||
/// </summary>
|
||||
public required string TemplateCode { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色名称。
|
||||
/// </summary>
|
||||
public required string Name { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色描述。
|
||||
/// </summary>
|
||||
public string? Description { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板绑定的权限集合。
|
||||
/// </summary>
|
||||
public IReadOnlyList<PermissionTemplateDefinition> Permissions { get; init; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user