diff --git a/frontend/src/api/services/Service.ts b/frontend/src/api/services/Service.ts index 75fedb7..9936ba4 100644 --- a/frontend/src/api/services/Service.ts +++ b/frontend/src/api/services/Service.ts @@ -68,6 +68,18 @@ import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class Service { + /** + * Close + * 关闭后端程序 + * @returns any Successful Response + * @throws ApiError + */ + public static closeApiCoreClosePost(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/api/core/close', + }); + } /** * 获取后端git版本信息 * @returns VersionOut Successful Response @@ -153,17 +165,6 @@ export class Service { url: '/api/info/notice/confirm', }); } - /** - * 获取启动时运行的队列ID - * @returns InfoOut Successful Response - * @throws ApiError - */ - public static getStartupTaskApiInfoStartuptaskPost(): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/api/info/startuptask', - }); - } /** * 获取配置分享中心的配置信息 * @returns InfoOut Successful Response @@ -882,17 +883,17 @@ export class Service { }); } /** - * 电源操作 + * 设置电源标志 * @param requestBody * @returns OutBase Successful Response * @throws ApiError */ - public static powerTaskApiDispatchPowerPost( + public static setPowerApiDispatchSetPowerPost( requestBody: PowerIn, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', - url: '/api/dispatch/power', + url: '/api/dispatch/set/power', body: requestBody, mediaType: 'application/json', errors: { @@ -900,6 +901,17 @@ export class Service { }, }); } + /** + * 取消电源任务 + * @returns OutBase Successful Response + * @throws ApiError + */ + public static cancelPowerTaskApiDispatchCancelPowerPost(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/api/dispatch/cancel/power', + }); + } /** * 搜索历史记录总览信息 * @param requestBody