feat: 권한관리 권한맵핑 작업
This commit is contained in:
@@ -6,6 +6,8 @@ import type {
|
||||
RoleAuthorizationsList,
|
||||
RoleAuthorizationsData,
|
||||
RoleAuthorizations,
|
||||
WithRoleIdRoleAuthorizationsParams,
|
||||
RoleAuthorizationsByRoleIdList,
|
||||
} from "../model/role-authorization-interface";
|
||||
|
||||
export class RoleAuthorizationsApiService implements RoleAuthorizationsService {
|
||||
@@ -19,6 +21,16 @@ export class RoleAuthorizationsApiService implements RoleAuthorizationsService {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async getRoleAuthorizationsListByRoleId(
|
||||
params: WithRoleIdRoleAuthorizationsParams,
|
||||
): Promise<RoleAuthorizationsByRoleIdList> {
|
||||
const response = await client.get<RoleAuthorizationsByRoleIdList>(
|
||||
`${ENDPOINT.USER_SERVICE.ROLE_AUTHORIZATIONS}`,
|
||||
{ params },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async createRoleAuthorizations(
|
||||
data: RoleAuthorizationsData,
|
||||
): Promise<RoleAuthorizations> {
|
||||
|
||||
Reference in New Issue
Block a user