DetectDto.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using XdCxRhDW.Dto.Attribute;
  9. namespace XdCxRhDW.Dto
  10. {
  11. /// <summary>
  12. /// 检测计算模型
  13. /// </summary>
  14. public class DetectDto
  15. {
  16. /// <summary>
  17. /// 调用Upload接口上传文件后返回的文件名
  18. /// </summary>
  19. [FileMustExist]
  20. public string file1 { get; set; }
  21. /// <summary>
  22. /// 检测类型
  23. /// </summary>
  24. [RangeInt(1, 4, IncludeMin = true)]
  25. public DmcType dmcType { get; set; }
  26. /// <summary>
  27. /// 采样率 Hz
  28. /// </summary>
  29. [RangeDouble(0, 100e6)]
  30. public double fsHz { get; set; }
  31. /// <summary>
  32. /// 信号带宽(KHz,只对IBS信号有效,默认25KHz)
  33. /// </summary>
  34. [RangeDouble(0, 100)]
  35. public double? band { get; set; } = 25;
  36. }
  37. /// <summary>
  38. /// 检测类型
  39. /// </summary>
  40. [Flags]
  41. public enum DmcType
  42. {
  43. /// <summary>
  44. /// DAMA检测
  45. /// </summary>
  46. [Display(Name = "DAMA检测")]
  47. DAMA = 1,
  48. /// <summary>
  49. /// IBS检测
  50. /// </summary>
  51. [Display(Name = "IBS检测")]
  52. IBS = 2,
  53. /// <summary>
  54. /// 能量检测
  55. /// </summary>
  56. [Display(Name = "能量检测")]
  57. Ky5758 = 4
  58. }
  59. }