您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LuPermissionsBusiness.cs 809B

12345678910111213141516171819202122
  1. using System;
  2. using Luticate2.Auth.Interfaces.Permissions;
  3. using Luticate2.Utils.Dbo.Result;
  4. namespace Luticate2.Auth.Business
  5. {
  6. public class LuPermissionsBusiness : ILuPermissionsBusiness
  7. {
  8. public LuResult<bool> GetPermissionValue(string permissionName, string srcEntityType, object srcEntity,
  9. string dstEntityType, object dstEntity)
  10. {
  11. return LuResult<bool>.Ok(true);
  12. }
  13. public LuResult<bool> GetPermissionEffectiveValue(string permissionName, string srcEntityType, object srcEntity,
  14. string dstEntityType, object dstEntity)
  15. {
  16. // throw new Exception($"{permissionName} {srcEntityType} {srcEntity} {dstEntityType} {dstEntity}");
  17. return LuResult<bool>.Ok(true);
  18. }
  19. }
  20. }