CourseInput.cs 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加科目输入参数
  5. /// </summary>
  6. public class AddCourseInput
  7. {
  8. /// <summary>
  9. /// 名称
  10. /// </summary>
  11. [Required, StringLength(50)]
  12. public string Name { get; set; }
  13. /// <summary>
  14. /// 简称
  15. /// </summary>
  16. [Required, StringLength(50)]
  17. public string ShortName { get; set; }
  18. /// <summary>
  19. /// 别称
  20. /// </summary>
  21. [StringLength(50)]
  22. public string NickName { get; set; }
  23. /// <summary>
  24. /// 备注
  25. /// </summary>
  26. [StringLength(200)]
  27. public string Remark { get; set; }
  28. /// <summary>
  29. /// 状态
  30. /// </summary>
  31. [Required]
  32. public CommonStatus Status { get; set; }
  33. }
  34. /// <summary>
  35. /// 更新科目输入参数
  36. /// </summary>
  37. public class UpdateCourseInput : AddCourseInput
  38. {
  39. /// <summary>
  40. /// 主键
  41. /// </summary>
  42. [Required]
  43. public short Id { get; set; }
  44. }