fix:1.修复数据库表初始化逻辑

This commit is contained in:
xiamuceer
2025-11-12 11:16:32 +08:00
parent b79cd33275
commit cb57c21569
4 changed files with 151 additions and 5 deletions
+8
View File
@@ -156,6 +156,14 @@ export const userApi = {
deleteUser: (userId: string) => api.delete(`/users/${userId}`),
getUser: (userId: string) => api.get<unknown, User>(`/users/${userId}`),
resetPassword: (userId: string, newPassword?: string) =>
api.post<unknown, {
message: string;
user_id: string;
username: string;
default_password?: string;
}>('/users/reset-password', { user_id: userId, new_password: newPassword }),
};
export const settingsApi = {