23 lines
662 B
C#
23 lines
662 B
C#
using MediatR;
|
||
using TakeoutSaaS.Application.Identity.Contracts;
|
||
using TakeoutSaaS.Shared.Abstractions.Results;
|
||
|
||
namespace TakeoutSaaS.Application.Identity.Queries;
|
||
|
||
/// <summary>
|
||
/// 分页查询角色。
|
||
/// </summary>
|
||
public sealed class SearchRolesQuery : IRequest<PagedResult<RoleDto>>
|
||
{
|
||
/// <summary>
|
||
/// 指定查询的租户 ID(空则取当前上下文)。
|
||
/// </summary>
|
||
public long? TenantId { get; init; }
|
||
|
||
public string? Keyword { get; init; }
|
||
public int Page { get; init; } = 1;
|
||
public int PageSize { get; init; } = 20;
|
||
public string? SortBy { get; init; }
|
||
public bool SortDescending { get; init; } = true;
|
||
}
|