AppFlowController.Dto.cs 3.5 KB

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