RoleCreateDto.cs 756 B

123456789101112131415161718192021222324252627
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using ShwasherSys.Authorization.Roles;
  4. using IwbZero.Authorization.Roles;
  5. namespace ShwasherSys.BaseSysInfo.Roles.Dto
  6. {
  7. [AutoMapTo(typeof(SysRole))]
  8. public class RoleCreateDto
  9. {
  10. [Required]
  11. [StringLength(RoleBase.MaxNameLength)]
  12. public string Name { get; set; }
  13. [Required]
  14. [StringLength(RoleBase.MaxDisplayNameLength)]
  15. public string RoleDisplayName { get; set; }
  16. [StringLength(RoleBase.MaxDescriptionLength)]
  17. public string Description { get; set; }
  18. public int RoleType { get; set; }
  19. //public virtual bool IsStatic { get; set; }
  20. //public virtual bool IsDefault { get; set; }
  21. }
  22. }