ExamResultInput.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 添加监测结果反馈文件输入参数
  4. /// </summary>
  5. public class AddExamResultInput
  6. {
  7. /// <summary>
  8. /// 监测计划ID
  9. /// </summary>
  10. [Required]
  11. public int ExamPlanId { get; set; }
  12. /// <summary>
  13. /// 监测结果发布内容ID
  14. /// </summary>
  15. [Required]
  16. public int ExamDataPublishId { get; set; }
  17. /// <summary>
  18. /// 文件名
  19. /// </summary>
  20. [Required]
  21. public string FileName { get; set; }
  22. /// <summary>
  23. /// 文件路径
  24. /// </summary>
  25. [Required]
  26. public string FilePath { get; set; }
  27. /// <summary>
  28. /// 扩展名
  29. /// </summary>
  30. [Required]
  31. public string FileExtName { get; set; }
  32. /// <summary>
  33. /// 文件大小
  34. /// </summary>
  35. [Required]
  36. public long FileSize { get; set; } = 0;
  37. }
  38. /// <summary>
  39. /// 上传结果反馈文件
  40. /// </summary>
  41. public class UploadExamResultInput
  42. {
  43. /// <summary>
  44. /// 监测计划ID
  45. /// </summary>
  46. [Required]
  47. public int ExamPlanId { get; set; }
  48. /// <summary>
  49. /// 监测结果反馈ID
  50. /// </summary>
  51. [Required]
  52. public int ExamDataPublishId { get; set; }
  53. /// <summary>
  54. /// 文件
  55. /// </summary>
  56. [Required]
  57. public IFormFile File { get; set; }
  58. }