FunctionUpdateDto.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using ShwasherSys.BaseSysInfo;
  5. namespace ShwasherSys.BaseSysInfo.Functions.Dto
  6. {
  7. [AutoMapTo(typeof(SysFunction)), AutoMapFrom(typeof(SysFunction))]
  8. public class FunctionUpdateDto : EntityDto<int>
  9. {
  10. [MaxLength(SysFunction.FunctionNoMaxLength)]
  11. public string FunctionNo { get; set; }
  12. [MaxLength(SysFunction.FunctionNoMaxLength)]
  13. public string ParentNo { get; set; }
  14. [MaxLength(SysFunction.FunctionNameMaxLength)]
  15. public string FunctionName { get; set; }
  16. [MaxLength(SysFunction.PermissionNameMaxLength)]
  17. public string PermissionName { get; set; }
  18. public int FunctionType { get; set; }
  19. [MaxLength(SysFunction.FunctionPathMaxLength)]
  20. public string FunctionPath { get; set; }
  21. [StringLength(SysFunction.ActionMaxLength)]
  22. public string Action { get; set; }
  23. [StringLength(SysFunction.ControllerMaxLength)]
  24. public string Controller { get; set; }
  25. public string Url { get; set; }
  26. [StringLength(SysFunction.IconMaxLength)]
  27. public string Icon { get; set; }
  28. [StringLength(SysFunction.ClassMaxLength)]
  29. public string Class { get; set; }
  30. public string Script { get; set; }
  31. public int Sort { get; set; }
  32. public int Depth { get; set; }
  33. }
  34. }