MdpSyncConfigEntities.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. [SugarTable("mdp_sync_task", "MDP同步任务业务配置")]
  3. public class MdpSyncTask
  4. {
  5. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  6. public long Id { get; set; }
  7. public long TenantId { get; set; }
  8. public string TaskCode { get; set; } = string.Empty;
  9. public string TaskName { get; set; } = string.Empty;
  10. public string TaskType { get; set; } = "SERVICE_SYNC";
  11. public string? BusinessDomainCode { get; set; }
  12. public string? BusinessDomainName { get; set; }
  13. public string? ConsumerModules { get; set; }
  14. public string? SourceSystemCode { get; set; }
  15. public string? ServiceKey { get; set; }
  16. public string? JobCode { get; set; }
  17. public string? ScheduleJobId { get; set; }
  18. public int Status { get; set; } = 1;
  19. public string? OwnerRole { get; set; }
  20. public int ConfigVersion { get; set; } = 1;
  21. public string? Description { get; set; }
  22. public DateTime CreateTime { get; set; }
  23. public DateTime UpdateTime { get; set; }
  24. }
  25. [SugarTable("mdp_sync_task_step", "MDP同步任务步骤配置")]
  26. public class MdpSyncTaskStep
  27. {
  28. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  29. public long Id { get; set; }
  30. public long TenantId { get; set; }
  31. public string TaskCode { get; set; } = string.Empty;
  32. public string StepCode { get; set; } = string.Empty;
  33. public string StepName { get; set; } = string.Empty;
  34. public string StageType { get; set; } = string.Empty;
  35. public string? ServiceMethodKey { get; set; }
  36. public int Enabled { get; set; } = 1;
  37. public int SortOrder { get; set; }
  38. public string? Description { get; set; }
  39. public DateTime CreateTime { get; set; }
  40. public DateTime UpdateTime { get; set; }
  41. }
  42. [SugarTable("mdp_sync_task_schedule", "MDP同步任务调度业务配置")]
  43. public class MdpSyncTaskSchedule
  44. {
  45. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  46. public long Id { get; set; }
  47. public long TenantId { get; set; }
  48. public string TaskCode { get; set; } = string.Empty;
  49. public string? ScheduleJobId { get; set; }
  50. public string ScheduleMode { get; set; } = "CRON";
  51. public string? CronExpr { get; set; }
  52. public string? CronDesc { get; set; }
  53. public string Timezone { get; set; } = "Asia/Shanghai";
  54. public int AutoEnabled { get; set; } = 1;
  55. public int ManualEnabled { get; set; } = 1;
  56. public int RetryEnabled { get; set; } = 1;
  57. public int MaxRetryCount { get; set; } = 3;
  58. public int RetryIntervalSeconds { get; set; } = 300;
  59. public int TimeoutSeconds { get; set; } = 3600;
  60. public string? MisfirePolicy { get; set; }
  61. public string SyncWindowType { get; set; } = "FULL";
  62. public string? SyncWindowValue { get; set; }
  63. public DateTime? LastScheduleTime { get; set; }
  64. public DateTime? NextScheduleTime { get; set; }
  65. public string? AdminJobConfigJson { get; set; }
  66. public string? Description { get; set; }
  67. public DateTime CreateTime { get; set; }
  68. public DateTime UpdateTime { get; set; }
  69. }