InspectionInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. /// <summary>
  4. /// 机房巡检步骤上报
  5. /// </summary>
  6. [Serializable]
  7. public class InspectionInfo
  8. {
  9. public int id; // 本次巡检ID
  10. public Dictionary<string,InspectionItem> items;
  11. public Dictionary<string,InspectionStep> steps;
  12. }
  13. /// <summary>
  14. /// 机房巡检步骤上报---items
  15. /// </summary>
  16. [Serializable]
  17. public class InspectionItem
  18. {
  19. public string name; // 巡检项名称
  20. public string question; // 巡检项的问题
  21. public string[] label; // 标签列表
  22. }
  23. /// <summary>
  24. /// 机房巡检步骤上报---steps
  25. /// </summary>
  26. [Serializable]
  27. public class InspectionStep
  28. {
  29. public bool normal; // 是否正常
  30. public string outliers; // 标签信息
  31. public int[] images; // 图片
  32. }
  33. /// <summary>
  34. /// 机房巡检步骤上报
  35. /// </summary>
  36. [Serializable]
  37. public class InspectionStepSet
  38. {
  39. public int itemId; // 检查项目的编号 1-12
  40. public bool normal; // 是否正常
  41. public string outliers; // 标签
  42. public int inspectionId; // 巡检编号,巡检开始时返回的id
  43. public string[] imageIds; // 图片文件ID 最多三个
  44. }