数据库定义增加Paging类,该类提供标准分页参数,api接口参数通过继承该类实现数据分页。
This commit is contained in:
parent
7d2cd85f4b
commit
4e63ad6c36
17
Falcon.SugarApi/DatabaseDefinitions/Paging.cs
Normal file
17
Falcon.SugarApi/DatabaseDefinitions/Paging.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user