@@ -0,0 +1,41 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user