feat: 更新 openapi-ts-request 1.6.7 -> 1.10.0

This commit is contained in:
Utopia
2025-10-28 13:34:35 +08:00
parent 5c83613bc4
commit 3d8cd1509e
5 changed files with 22 additions and 25 deletions

View File

@@ -6,12 +6,8 @@ import { CustomRequestOptions } from '@/http/types';
import * as API from './types';
/** 用户信息 GET /user/info */
export async function infoUsingGet({
options,
}: {
options?: CustomRequestOptions;
}) {
return request<API.UserItem>('/user/info', {
export function infoUsingGet({ options }: { options?: CustomRequestOptions }) {
return request<API.InfoUsingGetResponse>('/user/info', {
method: 'GET',
...(options || {}),
});

View File

@@ -4,15 +4,14 @@ 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));
/** 用户列表 GET /user/listAll */
export async function listAllUsingGet({
export function listAllUsingGet({
options,
}: {
options?: CustomRequestOptions;
}) {
return request<API.UserItem[]>('/user/listAll', {
return request<API.ListAllUsingGetResponse>('/user/listAll', {
method: 'GET',
...(options || {}),
});