refactor: 简化首次安装部署,安装向导并入后台并自动建库

This commit is contained in:
Nixevol
2026-07-08 17:46:34 +08:00
parent 3517ad9088
commit b498a49a9b
21 changed files with 555 additions and 486 deletions
+21
View File
@@ -17,6 +17,27 @@ export const appApi = {
info: () => get<{ appName: string; appIconUrl: string }>('/app-info'),
};
export interface InstallStatus {
installed: boolean;
traceCodeSalt: string | null;
defaults: {
mysqlHost: string;
mysqlPort: number;
mysqlDatabase: string;
mysqlUser: string;
mysqlPassword: string;
redisHost: string;
redisPort: number;
redisPassword: string;
port: number;
};
}
export const installApi = {
status: () => get<InstallStatus>('/install/status'),
install: (data: object) => post<{ installed: boolean; restartRequired: boolean }>('/install', data),
};
export const dashboardApi = {
overview: (params?: object) => get('/dashboard/overview', params),
};