QuestionUpdateDto.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using Abp.AutoMapper;
  3. using Abp.Application.Services.Dto;
  4. using System.ComponentModel.DataAnnotations;
  5. using WeOnlineApp.Configuration;
  6. namespace WeOnlineApp.Question.Dto
  7. {
  8. /// <summary>
  9. /// 问题
  10. /// </summary>
  11. [AutoMapTo(typeof(QuestionInfo))]
  12. public class QuestionUpdateDto: EntityDto<string>
  13. {
  14. /// <summary>
  15. /// 课程类型
  16. /// </summary>
  17. [Required]
  18. [StringLength(IwbConsts.PrimaryKey)]
  19. public string SubjectCategoryNo { get; set; }
  20. [StringLength(IwbConsts.PrimaryKey)]
  21. public string CampNo { get; set; }
  22. /// <summary>
  23. /// 问题标题
  24. /// </summary>
  25. [Required]
  26. [StringLength(QuestionInfo.TitleLength)]
  27. public string Title { get; set; }
  28. /// <summary>
  29. /// 问题内容
  30. /// </summary>
  31. [Required]
  32. [StringLength(QuestionInfo.ContentLength)]
  33. public string ContentInfo { get; set; }
  34. /// <summary>
  35. /// 问题状态
  36. /// </summary>
  37. public int QuestionState { get; set; }
  38. /// <summary>
  39. /// 解答时间
  40. /// </summary>
  41. public DateTime? AnswerDateTime { get; set; }
  42. }
  43. }