diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 6606c56..8bdd32b 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -111,5 +111,6 @@ export type { UserReorderIn } from './models/UserReorderIn'; export type { UserSetIn } from './models/UserSetIn'; export type { UserUpdateIn } from './models/UserUpdateIn'; export type { ValidationError } from './models/ValidationError'; +export type { VersionOut } from './models/VersionOut'; export { Service } from './services/Service'; diff --git a/frontend/src/api/models/VersionOut.ts b/frontend/src/api/models/VersionOut.ts new file mode 100644 index 0000000..ff9c990 --- /dev/null +++ b/frontend/src/api/models/VersionOut.ts @@ -0,0 +1,35 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type VersionOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 后端代码是否为最新 + */ + if_latest: boolean; + /** + * 后端代码当前哈希值 + */ + current_hash: string; + /** + * 后端代码当前时间戳 + */ + current_time: string; + /** + * 后端当前版本号 + */ + current_version: string; +}; + diff --git a/frontend/src/api/services/Service.ts b/frontend/src/api/services/Service.ts index ebe3a08..44d7598 100644 --- a/frontend/src/api/services/Service.ts +++ b/frontend/src/api/services/Service.ts @@ -63,10 +63,22 @@ import type { UserInBase } from '../models/UserInBase'; import type { UserReorderIn } from '../models/UserReorderIn'; import type { UserSetIn } from '../models/UserSetIn'; import type { UserUpdateIn } from '../models/UserUpdateIn'; +import type { VersionOut } from '../models/VersionOut'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class Service { + /** + * 获取后端git版本信息 + * @returns VersionOut Successful Response + * @throws ApiError + */ + public static getGitVersionApiInfoVersionPost(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/api/info/version', + }); + } /** * 获取关卡号下拉框信息 * @param requestBody