Files
ThingsGateway/framework/ThingsGateway.Admin.Core/BaseInput/BasePageInput.cs
T
Kimdiego2098 40f29fe399 2.0.0
2023-08-07 15:09:53 +08:00

53 lines
1.8 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.
#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
// QQ群:605534569
//------------------------------------------------------------------------------
#endregion
using Furion.DataValidation;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace ThingsGateway.Admin.Core
{
/// <summary>
/// 全局分页查询输入参数
/// </summary>
public class BasePageInput
{
/// <summary>
/// 当前页码
/// </summary>
[DataValidation(ValidationTypes.PositiveNumber)]
public virtual int Current { get; set; } = 1;
/// <summary>
/// 关键字
/// </summary>
[Description("关键字")]
public virtual string SearchKey { get; set; }
/// <summary>
/// 每页条数
/// </summary>
[Range(1, 500, ErrorMessage = "页码容量超过最大限制")]
public virtual int Size { get; set; } = 10;
/// <summary>
/// 排序字段
/// </summary>
public virtual List<string> SortField { get; set; } = new List<string>();
/// <summary>
/// 排序方式,true为desc,false为asc
/// </summary>
public virtual List<bool> SortDesc { get; set; } = new List<bool>();
}
}