RoleUserDto.cs 661 B

12345678910111213141516171819202122232425262728
  1. using System.ComponentModel.DataAnnotations;
  2. using Model.Base;
  3. namespace Dto
  4. {
  5. public class RoleUserQueryDto : PagerInfo
  6. {
  7. public long RoleId { get; set; }
  8. public string UserName { get; set; }
  9. }
  10. public class RoleUsersCreateDto
  11. {
  12. /// <summary>
  13. /// 角色id
  14. /// </summary>
  15. [Display(Name = "角色id")]
  16. [Required(ErrorMessage = "roleId 不能为空")]
  17. public long RoleId { get; set; }
  18. /// <summary>
  19. /// 用户编码 [1,2,3,4]
  20. /// </summary>
  21. [Display(Name = "用户编码 [1,2,3,4]")]
  22. public List<long> UserIds { get; set; }
  23. }
  24. }