42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using MediatR;
|
||
using TakeoutSaaS.Application.App.SystemParameters.Dto;
|
||
using TakeoutSaaS.Shared.Abstractions.Results;
|
||
|
||
namespace TakeoutSaaS.Application.App.SystemParameters.Queries;
|
||
|
||
/// <summary>
|
||
/// 系统参数列表查询。
|
||
/// </summary>
|
||
public sealed class SearchSystemParametersQuery : IRequest<PagedResult<SystemParameterDto>>
|
||
{
|
||
/// <summary>
|
||
/// 关键字(匹配 Key/Description)。
|
||
/// </summary>
|
||
public string? Keyword { get; init; }
|
||
|
||
/// <summary>
|
||
/// 启用状态过滤。
|
||
/// </summary>
|
||
public bool? IsEnabled { get; init; }
|
||
|
||
/// <summary>
|
||
/// 页码。
|
||
/// </summary>
|
||
public int Page { get; init; } = 1;
|
||
|
||
/// <summary>
|
||
/// 每页条数。
|
||
/// </summary>
|
||
public int PageSize { get; init; } = 20;
|
||
|
||
/// <summary>
|
||
/// 排序字段(key/sortOrder/createdAt/updatedAt/isEnabled)。
|
||
/// </summary>
|
||
public string? SortBy { get; init; }
|
||
|
||
/// <summary>
|
||
/// 是否倒序。
|
||
/// </summary>
|
||
public bool SortDescending { get; init; } = true;
|
||
}
|