Files
BuYuHouDuan/Infrastructure/Common/CommonModel/BaseListPageParam.cs
T
2026-10-12 16:22:04 +08:00

34 lines
824 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.CommonModel
{
public class BaseListPageParam
{
private string _keyword = "";
private int _page = 1;
private int _pageSize = 10;
public string KeyWord
{
get { return string.IsNullOrWhiteSpace(_keyword) ? "" : _keyword.Trim(); }
set { _keyword = string.IsNullOrWhiteSpace(value) ? "" : value.Trim(); }
}
public int? PageIndex
{
get { return _page <= 1 ? 1 : _page; }
set { _page = value ?? 0; }
}
public int? PageSize
{
get { return _pageSize <= 1 ? 10 : _pageSize; }
set { _pageSize = value ?? 0; }
}
}
}