EnvironResourceUpdateDto.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. namespace WePlatform.WeLib.EnvironResource.Dto
  5. {
  6. /// <summary>
  7. /// 环境资源
  8. /// </summary>
  9. [AutoMapTo(typeof(EnvironResourceInfo))]
  10. public class EnvironResourceUpdateDto: EntityDto<string>
  11. {
  12. /// <summary>
  13. /// 资源名称
  14. /// </summary>
  15. [StringLength(EnvironResourceInfo.NameLength)]
  16. public string ResourceName { get; set; }
  17. /// <summary>
  18. /// 资源类型
  19. /// </summary>
  20. public int ResourceType { get; set; }
  21. /// <summary>
  22. /// 资源路径
  23. /// </summary>
  24. [StringLength(EnvironResourceInfo.PathLength)]
  25. public string ResourcePath { get; set; }
  26. /// <summary>
  27. /// 资源描述
  28. /// </summary>
  29. [StringLength(EnvironResourceInfo.DescLength)]
  30. public string Description { get; set; }
  31. /// <summary>
  32. /// 消息代码
  33. /// </summary>
  34. [StringLength(EnvironResourceInfo.CodeLength)]
  35. public string MessageCode { get; set; }
  36. public string FileName { get; set; }
  37. public string FileExt { get; set; }
  38. public string FileInfo { get; set; }
  39. }
  40. }