S8DictionaryService.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace Admin.NET.Plugin.AiDOP.Service.S8;
  2. public class S8DictionaryService : ITransient
  3. {
  4. public object? GetDictionary(string dictType) =>
  5. dictType.ToUpperInvariant() switch
  6. {
  7. "S8_EXCEPTION_STATUS" => new[]
  8. {
  9. new { value = "NEW", label = "新建" },
  10. new { value = "ASSIGNED", label = "已指派" },
  11. new { value = "IN_PROGRESS", label = "处理中" },
  12. new { value = "RESOLVED", label = "已处理" },
  13. new { value = "PENDING_VERIFICATION", label = "待检验" },
  14. new { value = "CLOSED", label = "已关闭" },
  15. new { value = "REJECTED", label = "已驳回" },
  16. new { value = "ESCALATED", label = "已升级" },
  17. },
  18. "S8_EXCEPTION_SEVERITY" => new[]
  19. {
  20. new { value = "CRITICAL", label = "紧急" },
  21. new { value = "HIGH", label = "高" },
  22. new { value = "MEDIUM", label = "中" },
  23. new { value = "LOW", label = "低" },
  24. },
  25. "S8_SOURCE_TYPE" => new[]
  26. {
  27. new { value = "MANUAL", label = "人工提报" },
  28. new { value = "RULE", label = "规则触发" },
  29. new { value = "SYSTEM", label = "系统自动" },
  30. },
  31. "S8_PRIORITY_LEVEL" => new[]
  32. {
  33. new { value = "P1", label = "最高优先" },
  34. new { value = "P2", label = "高优先" },
  35. new { value = "P3", label = "中优先" },
  36. new { value = "P4", label = "低优先" },
  37. },
  38. _ => null
  39. };
  40. }