Files
aiot-uniapp/src/service/listAll.ts

21 lines
528 B
TypeScript
Raw Normal View History

2025-09-23 18:09:45 +08:00
/* eslint-disable */
// @ts-ignore
import request from '@/http/vue-query';
import { CustomRequestOptions } from '@/http/types';
import * as API from './types';
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
2025-09-23 18:09:45 +08:00
/** 用户列表 GET /user/listAll */
export async function listAllUsingGet({
options,
}: {
options?: CustomRequestOptions;
}) {
await sleep(2000); // 方便测试 cancel 功能
2025-09-23 18:09:45 +08:00
return request<API.UserItem[]>('/user/listAll', {
method: 'GET',
...(options || {}),
});
}