RoleDto.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using Abp.Application.Services.Dto;
  4. using Abp.AutoMapper;
  5. using ShwasherSys.Authorization.Roles;
  6. namespace ShwasherSys.BaseSysInfo.Roles.Dto
  7. {
  8. [AutoMapTo(typeof(SysRole)), AutoMapFrom(typeof(SysRole))]
  9. public class RoleDto : EntityDto<int>
  10. {
  11. public string Name { get; set; }
  12. public int RoleType { get; set; }
  13. public string Description { get; set; }
  14. public string RoleDisplayName { get; set; }
  15. public bool IsStatic { get; set; }
  16. }
  17. public class RoleDtoModel : EntityDto<int>
  18. {
  19. public string Name { get; set; }
  20. public int RoleType { get; set; }
  21. public string RoleDisplayName { get; set; }
  22. public string Description { get; set; }
  23. public string RoleTypeName { get; set; }
  24. public bool IsStatic { get; set; }
  25. public DateTime? LastModificationTime { get; set; }
  26. public long? LastModifierUserId { get; set; }
  27. public List<string> Permissions { get; set; }
  28. public string LastModifierUserName { get; set; }
  29. }
  30. }