S8DictionaryService.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 = "CLOSED", label = "已关闭" },
  14. new { value = "REJECTED", label = "已驳回" },
  15. new { value = "ESCALATED", label = "已升级" },
  16. },
  17. "S8_EXCEPTION_SEVERITY" => new[]
  18. {
  19. new { value = "CRITICAL", label = "紧急" },
  20. new { value = "HIGH", label = "高" },
  21. new { value = "MEDIUM", label = "中" },
  22. new { value = "LOW", label = "低" },
  23. },
  24. "S8_SOURCE_TYPE" => new[]
  25. {
  26. new { value = "MANUAL", label = "人工提报" },
  27. new { value = "RULE", label = "规则触发" },
  28. new { value = "SYSTEM", label = "系统自动" },
  29. },
  30. "S8_PRIORITY_LEVEL" => new[]
  31. {
  32. new { value = "P1", label = "最高优先" },
  33. new { value = "P2", label = "高优先" },
  34. new { value = "P3", label = "中优先" },
  35. new { value = "P4", label = "低优先" },
  36. },
  37. _ => null
  38. };
  39. }