提交 1e305a90 authored 作者: maimai's avatar maimai

fix: 权限接口

上级 59e0b9ae
......@@ -36,6 +36,30 @@ export const deleteRole = async (params: {[x: string]: any}) => {
});
};
// 所有权限列表
export const fetchPermissionList = async () => {
return request({
url: '/api/labbase/v1/secure/permission',
method: 'GET',
});
};
// 房间树
export const fetchRoomTreeList = async () => {
return request({
url: '/api/labbase/v1/secure/location/tree/noroom',
method: 'GET',
});
};
// 房间列表
export const fetchAllRoomList = async (params: {[x: string]: any}) => {
return request({
url: '/api/labbase/v1/secure/location/page',
method: 'GET',
params: { pageSize: 999, ...params },
});
};
// // 权限树状楼层结构
// export const fetchRoleTreeList = async (params: any = {}) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论