FunctionCreateDto.cs 886 B

123456789101112131415161718192021222324252627282930313233
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using VberZero.AppService.Base.TreeBase.Dto;
  4. using VberZero.BaseSystem;
  5. namespace VberZero.AppService.Functions.Dto;
  6. [AutoMapTo(typeof(SysFunction))]
  7. public class FunctionCreateDto : VzTreeEntityDto<int?>
  8. {
  9. [MaxLength(SysFunction.NameMaxLength)]
  10. public string Name { get; set; }
  11. [MaxLength(SysFunction.DisplayNameMaxLength)]
  12. public string DisplayName { get; set; }
  13. [MaxLength(SysFunction.PermissionNameMaxLength)]
  14. public string PermissionName { get; set; }
  15. public int FunctionType { get; set; }
  16. public string Url { get; set; }
  17. [StringLength(SysFunction.IconMaxLength)]
  18. public string Icon { get; set; }
  19. [StringLength(SysFunction.ClassMaxLength)]
  20. public string Class { get; set; }
  21. public string Script { get; set; }
  22. public bool NeedAuth { get; set; }
  23. }