列表
This commit is contained in:
28
src/WMS.Web.Core/Dto/PaginationRequestDto.cs
Normal file
28
src/WMS.Web.Core/Dto/PaginationRequestDto.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto
|
||||
{
|
||||
public class PaginationRequestDto: PaginationBaseRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织Id(所有列表页都需要 全局)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "组织不能为空")]
|
||||
public virtual int OrgId { get; set; }
|
||||
}
|
||||
|
||||
public class PaginationBaseRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 页数 不传默认为1
|
||||
/// </summary>
|
||||
public int PageNo { get; set; } = 1;
|
||||
/// <summary>
|
||||
/// 每页条数 不传默认每页10 条
|
||||
/// </summary>
|
||||
public int PageSize { get; set; } = 10;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user