AdoS8ConfigDraftDtos.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using Admin.NET.Plugin.AiDOP.Entity.S8;
  2. namespace Admin.NET.Plugin.AiDOP.Dto.S8;
  3. public class AdoS8ConfigDraftCreateDto
  4. {
  5. public long TenantId { get; set; } = 1;
  6. public long FactoryId { get; set; } = 1;
  7. public string DraftCode { get; set; } = string.Empty;
  8. public string? DraftName { get; set; }
  9. public string WizardJson { get; set; } = string.Empty;
  10. public int? CurrentStep { get; set; }
  11. public string? Mechanism { get; set; }
  12. public string? StageCode { get; set; }
  13. public string? OrderFlowCode { get; set; }
  14. public string? ExceptionTypeCode { get; set; }
  15. public string? Remark { get; set; }
  16. }
  17. public class AdoS8ConfigDraftUpdateDto
  18. {
  19. public string? DraftName { get; set; }
  20. public string? WizardJson { get; set; }
  21. public int? CurrentStep { get; set; }
  22. public string? Mechanism { get; set; }
  23. public string? StageCode { get; set; }
  24. public string? OrderFlowCode { get; set; }
  25. public string? ExceptionTypeCode { get; set; }
  26. public string? Remark { get; set; }
  27. }
  28. public class AdoS8ConfigDraftListQueryDto
  29. {
  30. public long TenantId { get; set; } = 1;
  31. public long FactoryId { get; set; } = 1;
  32. public string? Status { get; set; }
  33. public int Page { get; set; } = 1;
  34. public int PageSize { get; set; } = 20;
  35. }
  36. public class AdoS8ConfigDraftListItemDto
  37. {
  38. public long Id { get; set; }
  39. public long TenantId { get; set; }
  40. public long FactoryId { get; set; }
  41. public string DraftCode { get; set; } = string.Empty;
  42. public string? DraftName { get; set; }
  43. public string Status { get; set; } = string.Empty;
  44. public int CurrentStep { get; set; }
  45. public string? Mechanism { get; set; }
  46. public string? StageCode { get; set; }
  47. public string? OrderFlowCode { get; set; }
  48. public string? ExceptionTypeCode { get; set; }
  49. public long? GeneratedRuleId { get; set; }
  50. public string? Remark { get; set; }
  51. public DateTime CreatedAt { get; set; }
  52. public DateTime? UpdatedAt { get; set; }
  53. }
  54. public class AdoS8ConfigDraftListResultDto
  55. {
  56. public List<AdoS8ConfigDraftListItemDto> Items { get; set; } = new();
  57. public int Total { get; set; }
  58. public int Page { get; set; }
  59. public int PageSize { get; set; }
  60. }
  61. public class AdoS8ConfigDraftDetailDto : AdoS8ConfigDraftListItemDto
  62. {
  63. public string WizardJson { get; set; } = string.Empty;
  64. }
  65. /// <summary>
  66. /// CONFIG-WIZARD-API-RULEPAYLOAD-CLEANUP-1:generate-rule 请求体已收口为 {};
  67. /// 规则始终由后端基于 draft.wizard_json + 字典重建,不再接受前端构造的 RulePayload。
  68. /// </summary>
  69. public class AdoS8ConfigDraftGenerateRuleDto
  70. {
  71. }
  72. public class AdoS8ConfigDraftGenerateRuleResultDto
  73. {
  74. public long RuleId { get; set; }
  75. public string RuleCode { get; set; } = string.Empty;
  76. public string DraftStatus { get; set; } = string.Empty;
  77. }