角色分配提供分页功能

This commit is contained in:
samisgod
2021-12-17 09:55:48 +08:00
committed by 不做码农
parent 40cab1dd1e
commit 31157a2f97
7 changed files with 132 additions and 34 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace ZR.Model.System.Dto
{
public class RoleUserQueryDto : PagerInfo
{
public long RoleId { get; set; }
public string UserName { get; set; }
}
public class RoleUsersCreateDto
{
/// <summary>
/// 描述 : 角色id
/// 空值 : False
/// 默认 :
/// </summary>
[Display(Name = "角色id")]
[Required(ErrorMessage = "roleId 不能为空")]
public long RoleId { get; set; }
/// <summary>
/// 描述 : 用户编码 [1,2,3,4]
/// 空值 : False
/// 默认 :
/// </summary>
[Display(Name = "用户编码 [1,2,3,4]")]
public List<long> UserIds { get; set; }
}
}