You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
520 B

using MediatR;
using CellularManagement.Application.Common;
namespace CellularManagement.Application.Features.Roles.Queries;
/// <summary>
/// 获取所有角色的查询
/// </summary>
public record GetAllRolesQuery : IRequest<OperationResult<GetAllRolesResponse>>;
/// <summary>
/// 获取所有角色的响应
/// </summary>
public record GetAllRolesResponse(IEnumerable<RoleDto> Roles);
/// <summary>
/// 角色数据传输对象
/// </summary>
public record RoleDto(string Id, string Name, string Description);