FunctionCreateDto.cs 1.3 KB

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