Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/SystemParameters/Queries/SearchSystemParametersQuery.cs
2026-02-17 12:12:01 +08:00

42 lines
1.0 KiB
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 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;
}