using System;
namespace CRM.Core.DTO
{
public class LaypageDto
{
///
/// 每页行数
///
public int limit { get; set; }
///
/// 当前页是第几页
///
public int page { get; set; }
///
/// 排序方式
///
public string order { get; set; }
///
/// 排序字段
///
public string sort { get; set; }
///
/// 总数据量
///
public int count { get; set; }
public int totalPages
{
get
{
if (count == 0)
return 0;
else
return (int)Math.Ceiling((float)count / (float)limit);
}
}
}
}