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