RoleUpdateDto.cs 716 B

123456789101112131415161718192021222324
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using ShwasherSys.Authorization.Roles;
  5. using IwbZero.Authorization.Roles;
  6. namespace ShwasherSys.BaseSysInfo.Roles.Dto
  7. {
  8. [AutoMapTo(typeof(SysRole))]
  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 RoleDisplayName { get; set; }
  17. [StringLength(RoleBase.MaxDescriptionLength)]
  18. public string Description { get; set; }
  19. public int RoleType { get; set; }
  20. }
  21. }