RoleCreateDto.cs 782 B

12345678910111213141516171819202122232425262728
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using WeApp.Authorization.Roles;
  4. using IwbZero.Authorization.Base.Roles;
  5. namespace WeApp.BaseSystem.Roles.Dto
  6. {
  7. [AutoMapTo(typeof(Role))]
  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 DisplayName { get; set; }
  16. [StringLength(Role.MaxDescriptionLength)]
  17. public string Description { get; set; }
  18. public int RoleType { get; set; }
  19. public int AccountType { get; set; }
  20. //public virtual bool IsStatic { get; set; }
  21. //public virtual bool IsDefault { get; set; }
  22. }
  23. }