MdpSyncTaskDtos.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. namespace Admin.NET.Plugin.AiDOP.Dto.DataPlatform;
  2. public sealed class MdpSyncTaskListQuery
  3. {
  4. public string? Keyword { get; set; }
  5. public string? BusinessDomainCode { get; set; }
  6. public int? Status { get; set; }
  7. public int Page { get; set; } = 1;
  8. public int PageSize { get; set; } = 10;
  9. }
  10. public sealed class MdpSyncTaskListRow
  11. {
  12. public long Id { get; set; }
  13. public long TenantId { get; set; }
  14. public string TaskCode { get; set; } = string.Empty;
  15. public string TaskName { get; set; } = string.Empty;
  16. public string TaskType { get; set; } = string.Empty;
  17. public string? BusinessDomainCode { get; set; }
  18. public string? BusinessDomainName { get; set; }
  19. public string? ConsumerModules { get; set; }
  20. public string? SourceSystemCode { get; set; }
  21. public string? ServiceKey { get; set; }
  22. public string? JobCode { get; set; }
  23. public string? ScheduleJobId { get; set; }
  24. public int Status { get; set; }
  25. public int ConfigVersion { get; set; }
  26. public string? Description { get; set; }
  27. public string? ScheduleMode { get; set; }
  28. public bool AutoEnabled { get; set; }
  29. public bool ManualEnabled { get; set; }
  30. public string? LastRunStatus { get; set; }
  31. public DateTime? LastRunTime { get; set; }
  32. }
  33. public sealed class MdpSyncTaskUpsertInput
  34. {
  35. public string TaskCode { get; set; } = string.Empty;
  36. public string TaskName { get; set; } = string.Empty;
  37. public string TaskType { get; set; } = "SERVICE_SYNC";
  38. public string? BusinessDomainCode { get; set; }
  39. public string? BusinessDomainName { get; set; }
  40. public string? ConsumerModules { get; set; }
  41. public string? SourceSystemCode { get; set; }
  42. public string? ServiceKey { get; set; }
  43. public string? JobCode { get; set; }
  44. public string? ScheduleJobId { get; set; }
  45. public int Status { get; set; } = 1;
  46. public string? OwnerRole { get; set; }
  47. public string? Description { get; set; }
  48. }
  49. public sealed class MdpSyncTaskStepRow
  50. {
  51. public long? Id { get; set; }
  52. public string StepCode { get; set; } = string.Empty;
  53. public string StepName { get; set; } = string.Empty;
  54. public string StageType { get; set; } = string.Empty;
  55. public string? ServiceMethodKey { get; set; }
  56. public bool Enabled { get; set; } = true;
  57. public int SortOrder { get; set; }
  58. public string? Description { get; set; }
  59. }
  60. public sealed class MdpSyncTaskScheduleRow
  61. {
  62. public string TaskCode { get; set; } = string.Empty;
  63. public string? ScheduleJobId { get; set; }
  64. public string ScheduleMode { get; set; } = "CRON";
  65. public string? CronExpr { get; set; }
  66. public string? CronDesc { get; set; }
  67. public string Timezone { get; set; } = "Asia/Shanghai";
  68. public bool AutoEnabled { get; set; } = true;
  69. public bool ManualEnabled { get; set; } = true;
  70. public bool RetryEnabled { get; set; } = true;
  71. public int MaxRetryCount { get; set; } = 3;
  72. public int RetryIntervalSeconds { get; set; } = 300;
  73. public int TimeoutSeconds { get; set; } = 3600;
  74. public string? MisfirePolicy { get; set; }
  75. public string SyncWindowType { get; set; } = "FULL";
  76. public string? SyncWindowValue { get; set; }
  77. public DateTime? LastScheduleTime { get; set; }
  78. public DateTime? NextScheduleTime { get; set; }
  79. public string? AdminJobConfigJson { get; set; }
  80. public string? Description { get; set; }
  81. }