CurrentUserMenuPermissionsOutputDto.cs
484 Bytes
namespace FoodLabeling.Application.Contracts.Dtos.AuthSession;
/// <summary>
/// 当前登录用户的菜单与权限码(用于前端动态路由/按钮权限)
/// </summary>
public class CurrentUserMenuPermissionsOutputDto
{
public CurrentUserBriefDto User { get; set; } = new();
public List<string> RoleCodes { get; set; } = new();
public List<string> PermissionCodes { get; set; } = new();
public List<CurrentUserMenuNodeDto> Menus { get; set; } = new();
}