@abp/ng.permission-management
Version:
ABP Framework is a complete open-source infrastructure to create modern web applications by following the best practices and conventions of software development. This package is a part of the [ABP Framework](https://abp.io) and contains client-side files.
37 lines (33 loc) • 1.64 kB
JavaScript
import * as i1 from '@abp/ng.core';
import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';
class PermissionsService {
constructor(restService) {
this.restService = restService;
this.apiName = 'AbpPermissionManagement';
this.get = (providerName, providerKey) => this.restService.request({
method: 'GET',
url: '/api/permission-management/permissions',
params: { providerName, providerKey },
}, { apiName: this.apiName });
this.update = (providerName, providerKey, input) => this.restService.request({
method: 'PUT',
url: '/api/permission-management/permissions',
params: { providerName, providerKey },
body: input,
}, { apiName: this.apiName });
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PermissionsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PermissionsService, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PermissionsService, decorators: [{
type: Injectable,
args: [{
providedIn: 'root',
}]
}], ctorParameters: () => [{ type: i1.RestService }] });
/**
* Generated bundle index. Do not edit.
*/
export { PermissionsService };
//# sourceMappingURL=abp-ng.permission-management-proxy.mjs.map