using System.ComponentModel.DataAnnotations; using Abp.AutoMapper; using VberZero.AppService.Base.TreeBase.Dto; using VberZero.BaseSystem; namespace VberZero.AppService.Functions.Dto; [AutoMapTo(typeof(SysFunction))] public class FunctionCreateDto : VzTreeEntityDto { [MaxLength(SysFunction.NameMaxLength)] public string Name { get; set; } [MaxLength(SysFunction.DisplayNameMaxLength)] public string DisplayName { get; set; } [MaxLength(SysFunction.PermissionNameMaxLength)] public string PermissionName { get; set; } public int FunctionType { get; set; } public string Url { get; set; } [StringLength(SysFunction.IconMaxLength)] public string Icon { get; set; } [StringLength(SysFunction.ClassMaxLength)] public string Class { get; set; } public string Script { get; set; } public bool NeedAuth { get; set; } }