增加了版本号系统

This commit is contained in:
yml2213
2026-06-25 09:38:54 +08:00
parent f21f82cbed
commit e94b37c602
9 changed files with 131 additions and 22 deletions
+6
View File
@@ -0,0 +1,6 @@
import api from './client';
import type { AppInfo } from './types';
export const appApi = {
info: () => api.get<AppInfo, AppInfo>('/app-info'),
};
+1
View File
@@ -1,5 +1,6 @@
export * from './types';
export { accountApi } from './accounts';
export { appApi } from './app';
export { authApi } from './auth';
export { cookieApi } from './cookies';
export { loginApi } from './login';
+4
View File
@@ -13,6 +13,10 @@ export interface MessageDeletedResponse extends MessageResponse {
deleted: number;
}
export interface AppInfo {
version: string;
}
// ==================== Auth ====================
export interface LoginResult {