团餐订单
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.

CurrentUser.cs 910 B

11 kuukautta sitten
10 kuukautta sitten
11 kuukautta sitten
10 kuukautta sitten
11 kuukautta sitten
10 kuukautta sitten
11 kuukautta sitten
10 kuukautta sitten
11 kuukautta sitten
10 kuukautta sitten
11 kuukautta sitten
123456789101112131415161718192021222324252627282930
  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.Text;
  7. using System.Threading.Tasks;
  8. namespace BPA.KitChen.GroupMealOrder.Core
  9. {
  10. public static class CurrentUser
  11. {
  12. public static string? UserId => App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
  13. private static string tenantId;
  14. public static string? TenantId
  15. {
  16. get { return string.IsNullOrEmpty(App.User?.FindFirst(ClaimConst.GroupId)?.Value) ? tenantId : App.User?.FindFirst(ClaimConst.GroupId)?.Value; }
  17. set { tenantId = value; }
  18. }
  19. public static string? Account => App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
  20. public static string? RoleId => App.User?.FindFirst(ClaimConst.RoleId)?.Value;
  21. public static string MessageId { get; set; }
  22. }
  23. }