Files
TakeoutSaaS.AdminApi/src/Application/TakeoutSaaS.Application/Dictionary/Contracts/DictionaryGroupQuery.cs

55 lines
1.2 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 TakeoutSaaS.Domain.Dictionary.Enums;
namespace TakeoutSaaS.Application.Dictionary.Contracts;
/// <summary>
/// 字典分组查询参数。
/// </summary>
public sealed class DictionaryGroupQuery
{
/// <summary>
/// 租户 ID仅当 Scope=Business 时需要Scope=System 时忽略)。
/// </summary>
public long? TenantId { get; set; }
/// <summary>
/// 作用域过滤。
/// </summary>
public DictionaryScope? Scope { get; set; }
/// <summary>
/// 关键字(匹配编码或名称)。
/// </summary>
public string? Keyword { get; set; }
/// <summary>
/// 启用状态过滤。
/// </summary>
public bool? IsEnabled { get; set; }
/// <summary>
/// 分页页码。
/// </summary>
public int Page { get; set; } = 1;
/// <summary>
/// 分页大小。
/// </summary>
public int PageSize { get; set; } = 20;
/// <summary>
/// 排序字段。
/// </summary>
public string? SortBy { get; set; }
/// <summary>
/// 排序方向asc/desc
/// </summary>
public string? SortOrder { get; set; }
/// <summary>
/// 是否包含字典项。
/// </summary>
public bool IncludeItems { get; set; }
}