🎨 修改代码格式.

This commit is contained in:
lijiahang
2024-05-31 16:32:45 +08:00
parent 7bfa8a73be
commit 285f0532d3
23 changed files with 126 additions and 44 deletions

View File

@@ -2,6 +2,7 @@ import type { DataGrid, Pagination } from '@/types/global';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { RoleQueryResponse } from '@/api/user/role';
import axios from 'axios';
import qs from 'query-string';
/**
* 用户创建请求
@@ -162,6 +163,18 @@ export function deleteUser(id: number) {
return axios.delete('/infra/system-user/delete', { params: { id } });
}
/**
* 批量删除用户
*/
export function batchDeleteUser(idList: Array<number>) {
return axios.delete('/infra/system-user/batch-delete', {
params: { idList },
paramsSerializer: params => {
return qs.stringify(params, { arrayFormat: 'comma' });
}
});
}
/**
* 获取用户会话列表
*/