using System.Collections.Generic; using MediatR; using TakeoutSaaS.Application.Identity.Contracts; namespace TakeoutSaaS.Application.Identity.Commands; /// /// 创建角色模板命令。 /// public sealed record CreateRoleTemplateCommand : IRequest { /// /// 模板编码。 /// public string TemplateCode { get; init; } = string.Empty; /// /// 模板名称。 /// public string Name { get; init; } = string.Empty; /// /// 模板描述。 /// public string? Description { get; init; } /// /// 是否启用。 /// public bool IsActive { get; init; } = true; /// /// 权限编码集合。 /// public IReadOnlyCollection PermissionCodes { get; init; } = Array.Empty(); }