MdpSyncTaskDtos.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. }
  82. public sealed class MdpSyncTaskRunInput
  83. {
  84. public string? Mode { get; set; }
  85. public string? Reason { get; set; }
  86. public long FactoryId { get; set; } = 1;
  87. }