feat: 新增RBAC角色模板复制与初始化
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
using TakeoutSaaS.Application.Identity.Templates;
|
||||
|
||||
namespace TakeoutSaaS.Application.Identity.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// 角色模板提供者,用于获取预置模板定义。
|
||||
/// </summary>
|
||||
public interface IRoleTemplateProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取全部角色模板定义。
|
||||
/// </summary>
|
||||
/// <returns>模板定义集合。</returns>
|
||||
IReadOnlyList<RoleTemplateDefinition> GetTemplates();
|
||||
|
||||
/// <summary>
|
||||
/// 根据模板编码查找模板。
|
||||
/// </summary>
|
||||
/// <param name="templateCode">模板编码。</param>
|
||||
/// <returns>模板定义;不存在时返回 null。</returns>
|
||||
RoleTemplateDefinition? FindByCode(string templateCode);
|
||||
}
|
||||
Reference in New Issue
Block a user