mirror of https://github.com/abpframework/abp.git
5 changed files with 0 additions and 4295 deletions
@ -1,17 +0,0 @@ |
|||||
# Proxy Generation Output |
|
||||
|
|
||||
This directory includes the output of the latest proxy generation. |
|
||||
The files and folders in it will be overwritten when proxy generation is run again. |
|
||||
Therefore, please do not place your own content in this folder. |
|
||||
|
|
||||
In addition, `generate-proxy.json` works like a lock file. |
|
||||
It includes information used by the proxy generator, so please do not delete or modify it. |
|
||||
|
|
||||
Finally, the name of the files and folders should not be changed for two reasons: |
|
||||
- Proxy generator will keep creating them at those paths and you will have multiple copies of the same content. |
|
||||
- ABP Suite generates files which include imports from this folder. |
|
||||
|
|
||||
> **Important Notice:** If you are building a module and are planning to publish to npm, |
|
||||
> some of the generated proxies are likely to be exported from public-api.ts file. In such a case, |
|
||||
> please make sure you export files directly and not from barrel exports. In other words, |
|
||||
> do not include index.ts exports in your public-api.ts exports. |
|
||||
File diff suppressed because it is too large
@ -1,2 +0,0 @@ |
|||||
export * from './models'; |
|
||||
export * from './permissions.service'; |
|
||||
@ -1,33 +0,0 @@ |
|||||
export interface GetPermissionListResultDto { |
|
||||
entityDisplayName: string; |
|
||||
groups: PermissionGroupDto[]; |
|
||||
} |
|
||||
|
|
||||
export interface PermissionGrantInfoDto { |
|
||||
name: string; |
|
||||
displayName: string; |
|
||||
parentName: string; |
|
||||
isGranted: boolean; |
|
||||
allowedProviders: string[]; |
|
||||
grantedProviders: ProviderInfoDto[]; |
|
||||
} |
|
||||
|
|
||||
export interface PermissionGroupDto { |
|
||||
name: string; |
|
||||
displayName: string; |
|
||||
permissions: PermissionGrantInfoDto[]; |
|
||||
} |
|
||||
|
|
||||
export interface ProviderInfoDto { |
|
||||
providerName: string; |
|
||||
providerKey: string; |
|
||||
} |
|
||||
|
|
||||
export interface UpdatePermissionDto { |
|
||||
name: string; |
|
||||
isGranted: boolean; |
|
||||
} |
|
||||
|
|
||||
export interface UpdatePermissionsDto { |
|
||||
permissions: UpdatePermissionDto[]; |
|
||||
} |
|
||||
@ -1,33 +0,0 @@ |
|||||
import type { GetPermissionListResultDto, UpdatePermissionsDto } from './models'; |
|
||||
import { RestService } from '@abp/ng.core'; |
|
||||
import { Injectable } from '@angular/core'; |
|
||||
|
|
||||
@Injectable({ |
|
||||
providedIn: 'root', |
|
||||
}) |
|
||||
export class PermissionsService { |
|
||||
apiName = 'AbpPermissionManagement'; |
|
||||
|
|
||||
get = (providerName: string, providerKey: string) => |
|
||||
this.restService.request<any, GetPermissionListResultDto>( |
|
||||
{ |
|
||||
method: 'GET', |
|
||||
url: '/api/permission-management/permissions', |
|
||||
params: { providerName, providerKey }, |
|
||||
}, |
|
||||
{ apiName: this.apiName }, |
|
||||
); |
|
||||
|
|
||||
update = (providerName: string, providerKey: string, input: UpdatePermissionsDto) => |
|
||||
this.restService.request<any, void>( |
|
||||
{ |
|
||||
method: 'PUT', |
|
||||
url: '/api/permission-management/permissions', |
|
||||
params: { providerName, providerKey }, |
|
||||
body: input, |
|
||||
}, |
|
||||
{ apiName: this.apiName }, |
|
||||
); |
|
||||
|
|
||||
constructor(private restService: RestService) {} |
|
||||
} |
|
||||
Loading…
Reference in new issue