mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-03 15:23:30 +08:00
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
/* eslint-disable */
|
|
/* tslint:disable */
|
|
// @ts-nocheck
|
|
/*
|
|
* ---------------------------------------------------------------
|
|
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
* ## ##
|
|
* ## AUTHOR: acacode ##
|
|
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
* ---------------------------------------------------------------
|
|
*/
|
|
|
|
import request, { ContentType, RequestParams } from "./httpClient";
|
|
import {
|
|
DomainIndexResult,
|
|
V1CliCreateParams,
|
|
V1CliCreatePayload,
|
|
} from "./types";
|
|
|
|
/**
|
|
* @description 运行monkeycode-cli命令
|
|
*
|
|
* @tags CLI
|
|
* @name V1CliCreate
|
|
* @summary 运行monkeycode-cli命令
|
|
* @request POST:/api/v1/cli/{command}
|
|
* @response `200` `(DomainIndexResult)[]` 输出结果
|
|
* @response `500` `WebResp` 内部错误
|
|
*/
|
|
|
|
export const v1CliCreate = (
|
|
{ command, ...query }: V1CliCreateParams,
|
|
fileMetas: V1CliCreatePayload,
|
|
params: RequestParams = {},
|
|
) =>
|
|
request<DomainIndexResult[]>({
|
|
path: `/api/v1/cli/${command}`,
|
|
method: "POST",
|
|
query: query,
|
|
body: fileMetas,
|
|
type: ContentType.Json,
|
|
format: "json",
|
|
...params,
|
|
});
|