团餐订单
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
738 B

  1. using BPA.KitChen.GroupMealOrder.Core.Common.Const;
  2. using Furion;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Security.Claims;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPA.KitChen.GroupMealOrder.Core.Common
  10. {
  11. /// <summary>
  12. /// 当前用户
  13. /// </summary>
  14. public class CurrentUser
  15. {
  16. public static string? UserId => App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
  17. public static string? TenantId => App.User?.FindFirst(ClaimConst.GroupId)?.Value;
  18. public static string? Account => App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
  19. public static string? RoleId => App.User?.FindFirst(ClaimConst.RoleId)?.Value;
  20. }
  21. }