YD_Event.Admin/YD_Event.Application/Role/Dtos/GrantRolePermissionInput.cs
2026-03-18 13:47:34 +08:00

22 lines
484 B
C#

using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Role.Dtos;
/// <summary>
/// 授权角色权限输入
/// </summary>
public class GrantRolePermissionInput
{
/// <summary>
/// 角色ID
/// </summary>
[Required(ErrorMessage = "角色ID不能为空")]
public long Id { get; set; }
/// <summary>
/// 菜单ID集合
/// </summary>
[Required(ErrorMessage = "请选择权限")]
public List<long> MenuIds { get; set; }
}