RoleUpdateDto.cs 754 B

12345678910111213141516171819202122232425
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using WeOnlineApp.Authorization.Roles;
  5. using IwbZero.Authorization.Base.Roles;
  6. namespace WeOnlineApp.BaseSystem.Roles.Dto
  7. {
  8. [AutoMapTo(typeof(Role))]
  9. public class RoleUpdateDto : EntityDto<int>
  10. {
  11. [Required]
  12. [StringLength(RoleBase.MaxNameLength)]
  13. public virtual string Name { get; set; }
  14. [Required]
  15. [StringLength(RoleBase.MaxDisplayNameLength)]
  16. public virtual string DisplayName { get; set; }
  17. [StringLength(Role.MaxDescriptionLength)]
  18. public string Description { get; set; }
  19. public int RoleType { get; set; }
  20. public int AccountType { get; set; }
  21. }
  22. }