Merge branch 'feature/refactor' of github.com:DLmaster361/AUTO_MAA into feature/refactor

This commit is contained in:
DLmaster361
2025-09-09 21:00:17 +08:00
5 changed files with 108 additions and 22 deletions

View File

@@ -98,6 +98,8 @@ export type { TimeSetGetOut } from './models/TimeSetGetOut';
export type { TimeSetIndexItem } from './models/TimeSetIndexItem';
export type { TimeSetReorderIn } from './models/TimeSetReorderIn';
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 { UserCreateOut } from './models/UserCreateOut';
export type { UserDeleteIn } from './models/UserDeleteIn';

View File

@@ -3,26 +3,25 @@
/* tslint:disable */
/* eslint-disable */
export type HistoryIndexItem = {
/**
* 日期
*/
date: string;
/**
* 状态
*/
status: HistoryIndexItem.status;
/**
* 对应JSON文件
*/
jsonFile: string;
};
export namespace HistoryIndexItem {
/**
* 状态
*/
export enum status {
DONE = '完成',
ERROR = '异常',
}
/**
* 日期
*/
date: string
/**
* 状态
*/
status: HistoryIndexItem.status
/**
* 对应JSON文件
*/
jsonFile: string
}
export namespace HistoryIndexItem {
/**
* 状态
*/
export enum status {
DONE = '完成',
ERROR = '异常',
}
}

View 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;
};

View 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>>;
};

View File

@@ -53,6 +53,8 @@ import type { TimeSetGetIn } from '../models/TimeSetGetIn';
import type { TimeSetGetOut } from '../models/TimeSetGetOut';
import type { TimeSetReorderIn } from '../models/TimeSetReorderIn';
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 { UserDeleteIn } from '../models/UserDeleteIn';
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',
});
}
}