数据库定义增加Paging类,该类提供标准分页参数,api接口参数通过继承该类实现数据分页。

This commit is contained in:
falcon 2023-03-30 10:00:29 +08:00
parent 7d2cd85f4b
commit 4e63ad6c36

View File

@ -0,0 +1,17 @@
namespace Falcon.SugarApi.DatabaseDefinitions
{
/// <summary>
/// 对数据进行分页
/// </summary>
public class Paging
{
/// <summary>
/// 每页大小
/// </summary>
public int PageSize { get; set; } = 100;
/// <summary>
/// 第几页。页码从1开始
/// </summary>
public int PageNo { get; set; } = 1;
}
}