namespace OASystem.Domain.ViewModels { public class ViewBase { /// /// 数据获取时间 /// public string ReceiveDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); /// /// 数据返回时间 /// public string ReturnDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); } public class ListViewBase : ViewBase { /// /// 当前页码 /// public int CurrPageIndex { get; set; } /// /// 每页条数 /// public int CurrPageSize { get; set; } /// /// 数据总条数 /// public int DataCount { get; set; } /// /// 数据列表 /// public List DataList { get; set; } } public class DataCount { public int Count { get; set; } } public class DataCountCost { public decimal CountCost { get; set; } } /// /// 页面功能权限 /// public class PageFunAuthViewBase { /// /// 查看权限 /// 0 否 1 是 /// public int CheckAuth { get; set; } = 0; /// /// 删除权限 /// 0 否 1 是 /// public int DeleteAuth { get; set; } = 0; /// /// 编辑权限 /// 0 否 1 是 /// public int EditAuth { get; set; } = 0; /// /// 文件下载权限 /// 0 否 1 是 /// public int FilesDownloadAuth { get; set; } = 0; /// /// 文件上传权限 /// 0 否 1 是 /// public int FilesUploadAuth { get; set; } = 0; /// /// 添加权限 /// 0 否 1 是 /// public int AddAuth { get; set; } = 0; /// /// 审核权限 /// 0 否 1 是 /// public int AuditAuth { get; set; } = 0; } public class PageDataViewBase { public dynamic Data { get; set; } public int Total { get; set; } } }