/// <summary> /// /// </summary> /// <param name="repository"></param> /// <param name="_menuRepository"></param> /// <param name="_systemTypeRepository"></param> /// <param name="logService"></param> public RoleAuthorizeService(IRoleAuthorizeRepository repository, IMenuRepository _menuRepository, ISystemTypeRepository _systemTypeRepository, ILogService logService) : base(repository) { _repository = repository; menuRepository = _menuRepository; systemTypeRepository = _systemTypeRepository; _logService = logService; }
public PermissionService(IPermissionRepository permissionRepository, IRoleAuthorizeRepository roleAuthorizeRepository, IUserRoleRelationRepository userRoleRelationRepository) : base(permissionRepository) { _permissionRepository = permissionRepository; _roleAuthorizeRepository = roleAuthorizeRepository; _userRoleRelationRepository = userRoleRelationRepository; }
public PermissionService(IPermissionRepository permissionRepository, IRoleAuthorizeRepository roleAuthorizeRepository, IUserRoleRelationRepository userRoleRelationRepository) { this._permissionRepository = permissionRepository; this._roleAuthorizeRepository = roleAuthorizeRepository; this._userRoleRelationRepository = userRoleRelationRepository; }
/// <summary> /// /// </summary> /// <param name="repository"></param> /// <param name="_userRepository"></param> /// <param name="_roleAuthorizeRepository"></param> /// <param name="_systemTypeRepository"></param> /// <param name="logService"></param> public MenuService(IMenuRepository repository, IUserRepository _userRepository, IRoleAuthorizeRepository _roleAuthorizeRepository, ISystemTypeRepository _systemTypeRepository, ILogService logService) : base(repository) { _MenuRepository = repository; userRepository = _userRepository; roleAuthorizeRepository = _roleAuthorizeRepository; systemTypeRepository = _systemTypeRepository; _logService = logService; }
public RoleAuthorizeService(IRoleAuthorizeRepository service, MenuButtonService moduleButtonApp, MenuService menuApp, IMemoryCache _memoryCache, RoleService roleApp, IHttpContextAccessor contextAccessor) { this.service = service; this.moduleButtonApp = moduleButtonApp; this.memoryCache = _memoryCache; this.menuApp = menuApp; this.roleApp = roleApp; this.context = contextAccessor.HttpContext; }
protected override void BindEvent() { #region 角色用户 IUserRoleRepository userRoleRepository = this.Instance <IUserRoleRepository>(); RemoveEvent += userRoleRepository.RemoveUserRoleByRole;//移除用户角色绑定 #endregion #region 角色授权 IRoleAuthorizeRepository roleAuthorizeRepository = this.Instance <IRoleAuthorizeRepository>(); RemoveEvent += roleAuthorizeRepository.RemoveRoleAuthorizeByRole;//移除角色授权 #endregion }
public MenuService(IMenuRepository service, IRoleAuthorizeRepository roleAuthRepo) { this.service = service; this.roleAuthRepo = roleAuthRepo; }
public MenuApp(IMenuRepository service, IRoleAuthorizeRepository roleAuthRepo, IHttpContextAccessor contextAccessor) { this.service = service; this.roleAuthRepo = roleAuthRepo; this.context = contextAccessor.HttpContext; }
public RoleAuthorizeApp(IRoleAuthorizeRepository roleAuthorizeRepository, ModuleApp moduleApp, ModuleButtonApp moduleButtonApp) { this.service = roleAuthorizeRepository; this.moduleApp = moduleApp; this.moduleButtonApp = moduleButtonApp; }
public MenuButtonApp(IMenuButtonRepository menuRepo, IRoleAuthorizeRepository roleAuthRepo, IHttpContextAccessor accessor) { this.menuButtonRepo = menuRepo; this.roleAuthRepo = roleAuthRepo; this.context = accessor.HttpContext; }
public RoleAuthorizeService(IRoleAuthorizeRepository roleAuthorizeRepository) { _roleAuthorizeRepository = roleAuthorizeRepository; }
public MenuButtonService(IMenuButtonRepository menuRepo, IRoleAuthorizeRepository roleAuthRepo) { this.menuButtonRepo = menuRepo; this.roleAuthRepo = roleAuthRepo; }
public RoleService(IRoleRepository roleRepository, IRoleAuthorizeRepository roleAuthorizeRepository) : base(roleRepository) { _roleRepository = roleRepository; _roleAuthorizeRepository = roleAuthorizeRepository; }
public RoleAuthorizeService(IRoleAuthorizeRepository repository) : base(repository) { }