DingTalkGetProcessInstancesOutput.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
  2. //
  3. // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
  4. //
  5. // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
  6. namespace Admin.NET.Plugin.DingTalk;
  7. public class DingTalkGetProcessInstancesOutput
  8. {
  9. public ResultData Result { get; set; }
  10. public bool Success { get; set; }
  11. }
  12. public class OperationRecord
  13. {
  14. public DateTime? Date { get; set; }
  15. public string Result { get; set; }
  16. public List<object> Images { get; set; } // 图片可能是字符串 URL 或对象
  17. public string ShowName { get; set; }
  18. public string Type { get; set; }
  19. public string UserId { get; set; }
  20. }
  21. // 表格行中的子项(用于 TableField 的解析)
  22. public class TableRowItem
  23. {
  24. public string BizAlias { get; set; }
  25. public string Label { get; set; }
  26. public string Value { get; set; }
  27. public string Key { get; set; }
  28. public bool Mask { get; set; }
  29. }
  30. // 完整的一行表格数据
  31. public class TableRow
  32. {
  33. public List<TableRowItem> RowValue { get; set; }
  34. public string RowNumber { get; set; }
  35. }
  36. public class TaskItem
  37. {
  38. public string Result { get; set; }
  39. public string ActivityId { get; set; }
  40. public string PcUrl { get; set; }
  41. public DateTime? CreateTime { get; set; }
  42. public string MobileUrl { get; set; }
  43. public string UserId { get; set; }
  44. public long TaskId { get; set; }
  45. public string Status { get; set; }
  46. }
  47. public class ResultData
  48. {
  49. public List<string> AttachedProcessInstanceIds { get; set; }
  50. public string BusinessId { get; set; }
  51. public string Title { get; set; }
  52. public string OriginatorDeptId { get; set; }
  53. public List<OperationRecord> OperationRecords { get; set; }
  54. public List<FormComponentValue> FormComponentValues { get; set; }
  55. /// <summary>
  56. /// 审批结果 agree:同意 refuse:拒绝
  57. /// </summary>
  58. public string Result { get; set; }
  59. public string BizAction { get; set; }
  60. public DateTime? CreateTime { get; set; }
  61. public string OriginatorUserId { get; set; }
  62. public List<TaskItem> Tasks { get; set; }
  63. public string OriginatorDeptName { get; set; }
  64. public string Status { get; set; }
  65. }