AdminFlowController.Dto.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. using System.Collections.Generic;
  2. using GxPress.Entity.WorkFlow;
  3. namespace GxPress.Api.AdminControllers
  4. {
  5. public partial class AdminFlowController
  6. {
  7. public class ListRequest
  8. {
  9. /// <summary>
  10. /// 审批类型
  11. /// </summary>
  12. public int ProcessId { get; set; }
  13. /// <summary>
  14. /// 状态
  15. /// </summary>
  16. public string State { get; set; }
  17. /// <summary>
  18. /// 提交时间
  19. /// </summary>
  20. public string StartDate { get; set; }
  21. /// <summary>
  22. /// 完成时间
  23. /// </summary>
  24. public string EndDate { get; set; }
  25. /// <summary>
  26. /// 关键词
  27. /// </summary>
  28. public string Keyword { get; set; }
  29. /// <summary>
  30. /// 当前页
  31. /// </summary>
  32. public int Page { get; set; }
  33. /// <summary>
  34. /// 每页显示多少项
  35. /// </summary>
  36. public int PerPage { get; set; }
  37. }
  38. public class TodoListResult
  39. {
  40. /// <summary>
  41. /// 当前页
  42. /// </summary>
  43. public int Count { get; set; }
  44. /// <summary>
  45. /// 每页显示多少项
  46. /// </summary>
  47. public IEnumerable<FlowTodoResult> Items { get; set; }
  48. }
  49. public class GetCountResult
  50. {
  51. /// <summary>
  52. /// 我审批的 - 待审批
  53. /// </summary>
  54. public int MyCheckingCount { get; set; }
  55. /// <summary>
  56. /// 我审批的 - 已审批
  57. /// </summary>
  58. public int MyCheckedCount { get; set; }
  59. /// <summary>
  60. /// 我发起的
  61. /// </summary>
  62. public int SubmittedCount { get; set; }
  63. /// <summary>
  64. /// 抄送我的 - 未读
  65. /// </summary>
  66. public int CcUnreadCount { get; set; }
  67. /// <summary>
  68. /// 抄送我的 - 全部
  69. /// </summary>
  70. public int CcAllCount { get; set; }
  71. }
  72. public class FlowTodoResult : FlowTodo
  73. {
  74. public string State { get; set; }
  75. /// <summary>
  76. /// 当前页
  77. /// </summary>
  78. public string Title { get; set; }
  79. public string AvatarUrl { get; set; }
  80. /// <summary>
  81. /// 每页显示多少项
  82. /// </summary>
  83. public List<string> Summaries { get; set; }
  84. }
  85. public class CheckRequest
  86. {
  87. /// <summary>
  88. /// 工作流Id
  89. /// </summary>
  90. public int FlowId { get; set; }
  91. /// <summary>
  92. /// 待办Id
  93. /// </summary>
  94. public int TodoId { get; set; }
  95. /// <summary>
  96. /// 是否审核通过
  97. /// </summary>
  98. public bool IsChecked { get; set; }
  99. /// <summary>
  100. /// 留言
  101. /// </summary>
  102. public string Message { get; set; }
  103. }
  104. public class ActionRequest
  105. {
  106. /// <summary>
  107. /// 工作流Id
  108. /// </summary>
  109. public int FlowId { get; set; }
  110. }
  111. public class DownloadResult
  112. {
  113. /// <summary>
  114. /// 下载地址
  115. /// </summary>
  116. public string DownloadUrl { get; set; }
  117. /// <summary>
  118. /// 预览
  119. /// </summary>
  120. public string PreviewUrl { get; set; }
  121. }
  122. }
  123. }