namespace OASystem.Domain.ViewModels
{
    public class ViewBase
    {
        /// <summary>
        /// 数据获取时间
        /// </summary>
        public string ReceiveDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 数据返回时间
        /// </summary>
        public string ReturnDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }

    public class ListViewBase<T> : ViewBase
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int CurrPageIndex { get; set; }

        /// <summary>
        /// 每页条数
        /// </summary>
        public int CurrPageSize { get; set; }

        /// <summary>
        /// 数据总条数
        /// </summary>
        public int DataCount { get; set; }

        /// <summary>
        /// 数据列表
        /// </summary>
        public List<T> DataList { get; set; }
    }
    public class DataCount
    {
        public int Count { get; set; }
    }
}
