namespace FoodLabeling.Application.Contracts.Dtos.AuthSession; /// /// 当前登录用户的菜单与权限码(用于前端动态路由/按钮权限) /// public class CurrentUserMenuPermissionsOutputDto { public CurrentUserBriefDto User { get; set; } = new(); public List RoleCodes { get; set; } = new(); public List PermissionCodes { get; set; } = new(); public List Menus { get; set; } = new(); /// /// 用户资料最后更新时间(User.LastModificationTime,无则前端可忽略或展示「无」) /// public DateTime? LastUpdated { get; set; } /// /// 角色展示名(多角色英文逗号拼接;与 对应的库中 RoleName) /// public string Role { get; set; } = string.Empty; /// /// 全名:优先姓名(User.Name),其次昵称(Nick),最后用户名 /// public string FullName { get; set; } = string.Empty; }