ViewBase.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. namespace OASystem.Domain.ViewModels
  2. {
  3. public class ViewBase
  4. {
  5. /// <summary>
  6. /// 数据获取时间
  7. /// </summary>
  8. public string ReceiveDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  9. /// <summary>
  10. /// 数据返回时间
  11. /// </summary>
  12. public string ReturnDt { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  13. }
  14. public class ListViewBase<T> : ViewBase
  15. {
  16. /// <summary>
  17. /// 当前页码
  18. /// </summary>
  19. public int CurrPageIndex { get; set; }
  20. /// <summary>
  21. /// 每页条数
  22. /// </summary>
  23. public int CurrPageSize { get; set; }
  24. /// <summary>
  25. /// 数据总条数
  26. /// </summary>
  27. public int DataCount { get; set; }
  28. /// <summary>
  29. /// 数据列表
  30. /// </summary>
  31. public List<T> DataList { get; set; }
  32. }
  33. public class DataCount
  34. {
  35. public int Count { get; set; }
  36. }
  37. /// <summary>
  38. /// 页面功能权限
  39. /// </summary>
  40. public class PageFunAuthViewBase
  41. {
  42. /// <summary>
  43. /// 查看权限
  44. /// 0 不可操作 1 可操作
  45. /// </summary>
  46. public int CheckAuth { get; set; } = 0;
  47. /// <summary>
  48. /// 删除权限
  49. /// 0 不可操作 1 可操作
  50. /// </summary>
  51. public int DeleteAuth { get; set; } = 0;
  52. /// <summary>
  53. /// 编辑权限
  54. /// 0 不可操作 1 可操作
  55. /// </summary>
  56. public int EditAuth { get; set; } = 0;
  57. /// <summary>
  58. /// 文件下载权限
  59. /// 0 不可操作 1 可操作
  60. /// </summary>
  61. public int FilesDownloadAuth { get; set; } = 0;
  62. /// <summary>
  63. /// 文件上传权限
  64. /// 0 不可操作 1 可操作
  65. /// </summary>
  66. public int FilesUploadAuth { get; set; } = 0;
  67. /// <summary>
  68. /// 添加权限
  69. /// 0 不可操作 1 可操作
  70. /// </summary>
  71. public int AddAuth { get; set; } = 0;
  72. /// <summary>
  73. /// 审核权限
  74. /// 0 不可操作 1 可操作
  75. /// </summary>
  76. public int AuditAuth { get; set; } = 0;
  77. }
  78. }