Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

26 rindas
740 B

  1. using BPA.SAAS.KitChenManageOrder.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.SAAS.KitChenManageOrder.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. }