using Admin.NET.Plugin.AiDOP.Entity.S8; namespace Admin.NET.Plugin.AiDOP.Dto.S8; public class AdoS8ConfigDraftCreateDto { public long TenantId { get; set; } = 1; public long FactoryId { get; set; } = 1; public string DraftCode { get; set; } = string.Empty; public string? DraftName { get; set; } public string WizardJson { get; set; } = string.Empty; public int? CurrentStep { get; set; } public string? Mechanism { get; set; } public string? StageCode { get; set; } public string? OrderFlowCode { get; set; } public string? ExceptionTypeCode { get; set; } public string? Remark { get; set; } } public class AdoS8ConfigDraftUpdateDto { public string? DraftName { get; set; } public string? WizardJson { get; set; } public int? CurrentStep { get; set; } public string? Mechanism { get; set; } public string? StageCode { get; set; } public string? OrderFlowCode { get; set; } public string? ExceptionTypeCode { get; set; } public string? Remark { get; set; } } public class AdoS8ConfigDraftListQueryDto { public long TenantId { get; set; } = 1; public long FactoryId { get; set; } = 1; public string? Status { get; set; } public int Page { get; set; } = 1; public int PageSize { get; set; } = 20; } public class AdoS8ConfigDraftListItemDto { public long Id { get; set; } public long TenantId { get; set; } public long FactoryId { get; set; } public string DraftCode { get; set; } = string.Empty; public string? DraftName { get; set; } public string Status { get; set; } = string.Empty; public int CurrentStep { get; set; } public string? Mechanism { get; set; } public string? StageCode { get; set; } public string? OrderFlowCode { get; set; } public string? ExceptionTypeCode { get; set; } public long? GeneratedRuleId { get; set; } public string? Remark { get; set; } public DateTime CreatedAt { get; set; } public DateTime? UpdatedAt { get; set; } } public class AdoS8ConfigDraftListResultDto { public List Items { get; set; } = new(); public int Total { get; set; } public int Page { get; set; } public int PageSize { get; set; } } public class AdoS8ConfigDraftDetailDto : AdoS8ConfigDraftListItemDto { public string WizardJson { get; set; } = string.Empty; } public class AdoS8ConfigDraftGenerateRuleDto { /// 前端构造好的完整 watch_rule payload;首版不从 wizard_json 重建。 public AdoS8WatchRule? RulePayload { get; set; } } public class AdoS8ConfigDraftGenerateRuleResultDto { public long RuleId { get; set; } public string RuleCode { get; set; } = string.Empty; public string DraftStatus { get; set; } = string.Empty; }