Files
TakeoutSaaS.AdminApi/src/Application/TakeoutSaaS.Application/Identity/Contracts/RoleDetailDto.cs

45 lines
1011 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using TakeoutSaaS.Domain.Identity.Enums;
namespace TakeoutSaaS.Application.Identity.Contracts;
/// <summary>
/// 角色详情 DTO。
/// </summary>
public sealed record RoleDetailDto
{
/// <summary>
/// 角色所属 Portal。
/// </summary>
public PortalType Portal { get; init; }
/// <summary>
/// 角色 ID。
/// </summary>
public long Id { get; init; }
/// <summary>
/// 租户 IDPortal=Tenant 必填Portal=Admin 为空)。
/// </summary>
public long? TenantId { get; init; }
/// <summary>
/// 角色名称。
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// 角色编码。
/// </summary>
public string Code { get; init; } = string.Empty;
/// <summary>
/// 描述。
/// </summary>
public string? Description { get; init; }
/// <summary>
/// 权限列表。
/// </summary>
public IReadOnlyList<PermissionDto> Permissions { get; init; } = [];
}