feat(api): 添加任务创建和执行功能
This commit is contained in:
@@ -10,6 +10,7 @@ export type { OpenAPIConfig } from './core/OpenAPI';
|
||||
export type { ComboBoxItem } from './models/ComboBoxItem';
|
||||
export type { ComboBoxOut } from './models/ComboBoxOut';
|
||||
export type { DispatchIn } from './models/DispatchIn';
|
||||
export { GetStageIn } from './models/GetStageIn';
|
||||
export type { GlobalConfig } from './models/GlobalConfig';
|
||||
export type { GlobalConfig_Function } from './models/GlobalConfig_Function';
|
||||
export type { GlobalConfig_Notify } from './models/GlobalConfig_Notify';
|
||||
|
||||
@@ -10,6 +10,6 @@ export type ComboBoxItem = {
|
||||
/**
|
||||
* 实际值
|
||||
*/
|
||||
value: string;
|
||||
value: (string | null);
|
||||
};
|
||||
|
||||
|
||||
27
frontend/src/api/models/GetStageIn.ts
Normal file
27
frontend/src/api/models/GetStageIn.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type GetStageIn = {
|
||||
/**
|
||||
* 选择的日期类型, Today为当天, ALL为包含当天未开放关卡在内的所有项
|
||||
*/
|
||||
type: GetStageIn.type;
|
||||
};
|
||||
export namespace GetStageIn {
|
||||
/**
|
||||
* 选择的日期类型, Today为当天, ALL为包含当天未开放关卡在内的所有项
|
||||
*/
|
||||
export enum type {
|
||||
TODAY = 'Today',
|
||||
ALL = 'ALL',
|
||||
MONDAY = 'Monday',
|
||||
TUESDAY = 'Tuesday',
|
||||
WEDNESDAY = 'Wednesday',
|
||||
THURSDAY = 'Thursday',
|
||||
FRIDAY = 'Friday',
|
||||
SATURDAY = 'Saturday',
|
||||
SUNDAY = 'Sunday',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,6 @@ export type TaskCreateOut = {
|
||||
/**
|
||||
* 新创建的任务ID
|
||||
*/
|
||||
taskId: string;
|
||||
websocketId: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
/* eslint-disable */
|
||||
import type { ComboBoxOut } from '../models/ComboBoxOut';
|
||||
import type { DispatchIn } from '../models/DispatchIn';
|
||||
import type { GetStageIn } from '../models/GetStageIn';
|
||||
import type { InfoOut } from '../models/InfoOut';
|
||||
import type { OutBase } from '../models/OutBase';
|
||||
import type { PlanCreateIn } from '../models/PlanCreateIn';
|
||||
@@ -49,14 +50,22 @@ import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class Service {
|
||||
/**
|
||||
* 获取关卡号信息
|
||||
* @returns InfoOut Successful Response
|
||||
* 获取关卡号下拉框信息
|
||||
* @param requestBody
|
||||
* @returns ComboBoxOut Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getStageInfoApiInfoStagePost(): CancelablePromise<InfoOut> {
|
||||
public static getStageComboxApiInfoComboxStagePost(
|
||||
requestBody: GetStageIn,
|
||||
): CancelablePromise<ComboBoxOut> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/info/stage',
|
||||
url: '/api/info/combox/stage',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -70,6 +79,17 @@ export class Service {
|
||||
url: '/api/info/combox/script',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 获取可选任务下拉框信息
|
||||
* @returns ComboBoxOut Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getTaskComboxApiInfoComboxTaskPost(): CancelablePromise<ComboBoxOut> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/info/combox/task',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 获取通知信息
|
||||
* @returns InfoOut Successful Response
|
||||
|
||||
Reference in New Issue
Block a user