Blame view

美国版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/AuthSession/CurrentUserMenuPermissionsOutputDto.cs 1.04 KB
8e0c49eb   李曜臣   产品标签类别优化;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  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();
10fd1324   李曜臣   5-17接口优化
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  
      /// <summary>
      /// 用户资料最后更新时间(User.LastModificationTime,无则前端可忽略或展示「无」)
      /// </summary>
      public DateTime? LastUpdated { get; set; }
  
      /// <summary>
      /// 角色展示名(多角色英文逗号拼接;与 <see cref="RoleCodes"/> 对应的库中 RoleName
      /// </summary>
      public string Role { get; set; } = string.Empty;
  
      /// <summary>
      /// 全名:优先姓名(User.Name),其次昵称(Nick),最后用户名
      /// </summary>
      public string FullName { get; set; } = string.Empty;
8e0c49eb   李曜臣   产品标签类别优化;
30
  }