RuleConfigSnapshot.cs 727 B

123456789101112131415161718
  1. namespace Admin.NET.Plugin.AiDOP.Rule;
  2. /// <summary>
  3. /// 规则解析快照,用于记录一次业务执行实际生效的规则上下文。
  4. /// </summary>
  5. public sealed class RuleConfigSnapshot<TOptions>
  6. where TOptions : class, new()
  7. {
  8. public string ModuleCode { get; set; } = string.Empty;
  9. public string ScenarioCode { get; set; } = string.Empty;
  10. public string Source { get; set; } = string.Empty;
  11. public DateTime ResolvedAt { get; set; }
  12. public long TenantId { get; set; }
  13. public long? FactoryId { get; set; }
  14. public TOptions Options { get; set; } = new();
  15. public List<RuleConfigAppliedItem> AppliedItems { get; set; } = new();
  16. public List<string> Warnings { get; set; } = new();
  17. }