feat: 添加Projects结构体并优化项目获取逻辑及状态码

- 添加Projects结构体并优化get_all_project方法以使用新结构体收集项目名称
- 将项目获取成功时的HTTP状态码从404修改为200。
This commit is contained in:
2025-08-20 09:36:42 +08:00
parent 8257c9e7e5
commit 8a1f2cee94
2 changed files with 13 additions and 7 deletions

View File

@@ -224,7 +224,7 @@ async fn get_projects(
(
StatusCode::OK,
Json(ProjectResponse {
code: 404,
code: 200,
projects: projects,
}),
)