| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- 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<AdoS8ConfigDraftListItemDto> 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
- {
- /// <summary>
- /// 兼容模式(CONFIG-WIZARD-GENERATE-RULE-SERVER-BUILD-1):
- /// - 非空:沿用旧路径,直接信任前端构造好的 watch_rule payload。
- /// - null/缺省:后端基于 draft.wizard_json + 字典(monitor_object/metric, exception_type, data_source, scene_config)重建。
- /// </summary>
- 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;
- }
|