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