Merge branch 'feature/refactor' of github.com:DLmaster361/AUTO_MAA into feature/refactor
This commit is contained in:
@@ -98,6 +98,8 @@ export type { TimeSetGetOut } from './models/TimeSetGetOut';
|
|||||||
export type { TimeSetIndexItem } from './models/TimeSetIndexItem';
|
export type { TimeSetIndexItem } from './models/TimeSetIndexItem';
|
||||||
export type { TimeSetReorderIn } from './models/TimeSetReorderIn';
|
export type { TimeSetReorderIn } from './models/TimeSetReorderIn';
|
||||||
export type { TimeSetUpdateIn } from './models/TimeSetUpdateIn';
|
export type { TimeSetUpdateIn } from './models/TimeSetUpdateIn';
|
||||||
|
export type { UpdateCheckIn } from './models/UpdateCheckIn';
|
||||||
|
export type { UpdateCheckOut } from './models/UpdateCheckOut';
|
||||||
export type { UserConfig_Notify } from './models/UserConfig_Notify';
|
export type { UserConfig_Notify } from './models/UserConfig_Notify';
|
||||||
export type { UserCreateOut } from './models/UserCreateOut';
|
export type { UserCreateOut } from './models/UserCreateOut';
|
||||||
export type { UserDeleteIn } from './models/UserDeleteIn';
|
export type { UserDeleteIn } from './models/UserDeleteIn';
|
||||||
|
|||||||
@@ -3,26 +3,25 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export type HistoryIndexItem = {
|
export type HistoryIndexItem = {
|
||||||
/**
|
/**
|
||||||
* 日期
|
* 日期
|
||||||
*/
|
*/
|
||||||
date: string;
|
date: string
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
status: HistoryIndexItem.status;
|
status: HistoryIndexItem.status
|
||||||
/**
|
/**
|
||||||
* 对应JSON文件
|
* 对应JSON文件
|
||||||
*/
|
*/
|
||||||
jsonFile: string;
|
jsonFile: string
|
||||||
};
|
}
|
||||||
export namespace HistoryIndexItem {
|
export namespace HistoryIndexItem {
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
export enum status {
|
export enum status {
|
||||||
DONE = '完成',
|
DONE = '完成',
|
||||||
ERROR = '异常',
|
ERROR = '异常',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
11
frontend/src/api/models/UpdateCheckIn.ts
Normal file
11
frontend/src/api/models/UpdateCheckIn.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
/* generated using openapi-typescript-codegen -- do not edit */
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
export type UpdateCheckIn = {
|
||||||
|
/**
|
||||||
|
* 当前前端版本号
|
||||||
|
*/
|
||||||
|
current_version: string;
|
||||||
|
};
|
||||||
|
|
||||||
31
frontend/src/api/models/UpdateCheckOut.ts
Normal file
31
frontend/src/api/models/UpdateCheckOut.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/* generated using openapi-typescript-codegen -- do not edit */
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
export type UpdateCheckOut = {
|
||||||
|
/**
|
||||||
|
* 状态码
|
||||||
|
*/
|
||||||
|
code?: number;
|
||||||
|
/**
|
||||||
|
* 操作状态
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* 操作消息
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* 是否需要更新前端
|
||||||
|
*/
|
||||||
|
if_need_update: boolean;
|
||||||
|
/**
|
||||||
|
* 最新前端版本号
|
||||||
|
*/
|
||||||
|
latest_version: string;
|
||||||
|
/**
|
||||||
|
* 版本更新信息字典
|
||||||
|
*/
|
||||||
|
update_info: Record<string, Array<string>>;
|
||||||
|
};
|
||||||
|
|
||||||
@@ -53,6 +53,8 @@ import type { TimeSetGetIn } from '../models/TimeSetGetIn';
|
|||||||
import type { TimeSetGetOut } from '../models/TimeSetGetOut';
|
import type { TimeSetGetOut } from '../models/TimeSetGetOut';
|
||||||
import type { TimeSetReorderIn } from '../models/TimeSetReorderIn';
|
import type { TimeSetReorderIn } from '../models/TimeSetReorderIn';
|
||||||
import type { TimeSetUpdateIn } from '../models/TimeSetUpdateIn';
|
import type { TimeSetUpdateIn } from '../models/TimeSetUpdateIn';
|
||||||
|
import type { UpdateCheckIn } from '../models/UpdateCheckIn';
|
||||||
|
import type { UpdateCheckOut } from '../models/UpdateCheckOut';
|
||||||
import type { UserCreateOut } from '../models/UserCreateOut';
|
import type { UserCreateOut } from '../models/UserCreateOut';
|
||||||
import type { UserDeleteIn } from '../models/UserDeleteIn';
|
import type { UserDeleteIn } from '../models/UserDeleteIn';
|
||||||
import type { UserGetIn } from '../models/UserGetIn';
|
import type { UserGetIn } from '../models/UserGetIn';
|
||||||
@@ -956,4 +958,45 @@ export class Service {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 检查更新
|
||||||
|
* @param requestBody
|
||||||
|
* @returns UpdateCheckOut Successful Response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static checkUpdateApiUpdateCheckPost(
|
||||||
|
requestBody: UpdateCheckIn,
|
||||||
|
): CancelablePromise<UpdateCheckOut> {
|
||||||
|
return __request(OpenAPI, {
|
||||||
|
method: 'POST',
|
||||||
|
url: '/api/update/check',
|
||||||
|
body: requestBody,
|
||||||
|
mediaType: 'application/json',
|
||||||
|
errors: {
|
||||||
|
422: `Validation Error`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 下载更新
|
||||||
|
* @returns OutBase Successful Response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static downloadUpdateApiUpdateDownloadPost(): CancelablePromise<OutBase> {
|
||||||
|
return __request(OpenAPI, {
|
||||||
|
method: 'POST',
|
||||||
|
url: '/api/update/download',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 安装更新
|
||||||
|
* @returns OutBase Successful Response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static installUpdateApiUpdateInstallPost(): CancelablePromise<OutBase> {
|
||||||
|
return __request(OpenAPI, {
|
||||||
|
method: 'POST',
|
||||||
|
url: '/api/update/install',
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user