diff --git a/passiflora-ui/src/api/organization/position.ts b/passiflora-ui/src/api/organization/position.ts index c3e509c..5cce952 100644 --- a/passiflora-ui/src/api/organization/position.ts +++ b/passiflora-ui/src/api/organization/position.ts @@ -14,6 +14,11 @@ export type PositionRecord = { children?: PositionRecord[] | undefined; } & BaseEntity; +export type positionPermissionSaveDto = { + positionId?: string; + permissionIds?: string[]; +}; + export interface positionPageParams extends Partial, BasePageParam {} @@ -78,3 +83,17 @@ export function positionEnable(data: string[]) { data ); } + +export function permissionIdsByPositionIds(data: string[]) { + return axios.post>( + '/system-api/sysPosition/permissionIdsByPositionIds', + data + ); +} + +export function savePositionPermission(data: positionPermissionSaveDto) { + return axios.post>( + '/system-api/sysPosition/savePositionPermission', + data + ); +}