update 新增角色api

This commit is contained in:
LiuHao 2024-01-31 16:23:23 +08:00
parent d89244d3f7
commit 45c7bcd580

View File

@ -12,6 +12,17 @@ export const listRole = (query: RoleQuery): AxiosPromise<RoleVO[]> => {
});
};
/**
* roleIds查询角色
* @param roleIds
*/
export const optionSelect = (roleIds: (number | string)[]): AxiosPromise<RoleVO[]> => {
return request({
url: '/system/role/optionselect?roleIds=' + roleIds,
method: 'get'
});
};
/**
*
*/
@ -142,3 +153,8 @@ export const deptTreeSelect = (roleId: string | number): AxiosPromise<RoleDeptTr
method: 'get'
});
};
export default {
optionSelect,
listRole
};