30 lines
758 B
C#
30 lines
758 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VOL.Model
|
|
{
|
|
/// <summary>
|
|
/// 分页
|
|
/// </summary>
|
|
public class PageDto
|
|
{
|
|
/// <summary>
|
|
/// 页码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "页码参数不能为空")]
|
|
[Range(1, int.MaxValue, ErrorMessage = "参数必须大于0")]
|
|
public int PageIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// 每页行数
|
|
/// </summary>
|
|
[Required(ErrorMessage = "行数不能为空")]
|
|
[Range(1, int.MaxValue, ErrorMessage = "参数必须大于0")]
|
|
public int PageSize { get; set; }
|
|
}
|
|
}
|