Skip to content

Commit

Permalink
feat: 完善职位权限功能
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolincku committed Jun 29, 2024
1 parent cab10ca commit c783e5a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions passiflora-ui/src/api/organization/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export type PositionRecord = {
children?: PositionRecord[] | undefined;
} & BaseEntity;

export type positionPermissionSaveDto = {
positionId?: string;
permissionIds?: string[];
};

export interface positionPageParams
extends Partial<PositionRecord>,
BasePageParam {}
Expand Down Expand Up @@ -78,3 +83,17 @@ export function positionEnable(data: string[]) {
data
);
}

export function permissionIdsByPositionIds(data: string[]) {
return axios.post<Result<string[]>>(
'/system-api/sysPosition/permissionIdsByPositionIds',
data
);
}

export function savePositionPermission(data: positionPermissionSaveDto) {
return axios.post<Result<string>>(
'/system-api/sysPosition/savePositionPermission',
data
);
}

0 comments on commit c783e5a

Please sign in to comment.