YD_Event.Admin/YD_Event.Application/Role/Dtos/GrantRolePermissionInput.cs

22 lines
484 B
C#
Raw Normal View History

2026-02-08 15:57:40 +08:00
using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Role.Dtos;
2026-03-18 13:47:34 +08:00
/// <summary>
/// 授权角色权限输入
/// </summary>
2026-02-08 15:57:40 +08:00
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; }
}