PhoneQuestionCreateDto.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Abp.AutoMapper;
  2. using AutoMapper.Configuration.Annotations;
  3. using IwbZero.AppServiceBase;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace WeApp.BasicInfo.PhoneQuestion.Dto
  7. {
  8. /// <summary>
  9. /// 电话提问维护
  10. /// </summary>
  11. [AutoMapTo(typeof(PhoneQuestionInfo))]
  12. public class PhoneQuestionCreateDto : IwbEntityDto
  13. {
  14. /// <summary>
  15. /// 简称
  16. /// </summary>
  17. [StringLength(PhoneQuestionInfo.NameMaxLength)]
  18. public string Name { get; set; }
  19. /// <summary>
  20. /// 内容
  21. /// </summary>
  22. [StringLength(PhoneQuestionInfo.ContentMaxLength)]
  23. public string Content { get; set; }
  24. public int Type { get; set; }
  25. /// <summary>
  26. /// 内容
  27. /// </summary>
  28. [StringLength(PhoneQuestionInfo.TagMaxLength)]
  29. public string Tag { get; set; }
  30. [Ignore]
  31. public List<PhoneAnswerDto> Answers { get; set; } = new List<PhoneAnswerDto>();
  32. }
  33. }