refactor(backend): 调整模块结构、调度器逻辑与健康检查路由

This commit is contained in:
zhangtao
2026-09-06 00:54:24 +08:00
parent 92081815f4
commit d470c7eb1f
324 changed files with 3435 additions and 7404 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ const UserAPI = {
* @returns uni.uploadFile 成功回调(statusCode + data 响应体字符串,需调用方解析)
*/
uploadCurrentUserAvatar(body: { filePath: string, name?: string }): Promise<{ statusCode: number, data: string }> {
return http.Post(`${USER_BASE_URL}/current/avatar/upload`, body, { requestType: 'upload' })
return http.Post('/file/upload?upload_type=avatar', body, { requestType: 'upload' })
},
/**
@@ -45,7 +45,7 @@ const UserAPI = {
* @returns 修改后的用户信息
*/
changeCurrentUserPassword(body: PasswordChangeForm): Promise<void> {
return http.Put(`${USER_BASE_URL}/current/password/change`, body)
return http.Put(`${USER_BASE_URL}/password/change`, body)
},
/**
@@ -154,7 +154,7 @@ const UserAPI = {
* @param body 用户表单数据
*/
updateUser(body: UserForm): Promise<void> {
return http.Put(`${USER_BASE_URL}/update`, body)
return http.Put(`${USER_BASE_URL}/update/${body.id}`, body)
},
/**