create-vite-app-cli
Version:
a fast create webapp template cli, perfect engineering development experience, currently supported template presets include: - `react-ts` (React + TypeScript + Vite + Pnpm + Zustand + Openapi + Docker) - `vue-ts` (Vue 3 + TypeScript + Vite + Pnpm + Pinia
31 lines (28 loc) • 785 B
text/typescript
// @ts-ignore
/* eslint-disable */
import request from "@request";
/** HelloGet GET /demo-docker/api/v1/hello */
export async function HelloGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: Api.HelloGetParams,
options?: { [key: string]: any },
) {
return request<Api.HelloResp>("/demo-docker/api/v1/hello", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** HelloPost POST /demo-docker/api/v1/hello */
export async function HelloPost(body: Api.HelloPostParam, options?: { [key: string]: any }) {
return request<Api.HelloResp>("/demo-docker/api/v1/hello", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}