feat: 添加获取后端git版本信息接口及相关类型定义

This commit is contained in:
2025-09-09 21:16:26 +08:00
parent 75ff858f68
commit 482077c862
3 changed files with 48 additions and 0 deletions

View File

@@ -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';

View File

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

View File

@@ -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<VersionOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/info/version',
});
}
/**
* 获取关卡号下拉框信息
* @param requestBody