File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -298,9 +298,12 @@ Go Version: go1.24.10
298298- ** Go版本** :编译时使用的Go版本
299299
300300#### 技术实现
301- - 后端提供 ` /api/version ` 接口返回版本信息
301+ - 后端提供 ` /api/version ` 接口返回版本信息(无需认证)
302302- 前端使用 ` getVersionInfo ` API 获取版本信息
303303- 使用 Ant Design Vue 的 ` a-descriptions ` 组件展示信息
304+ - 版本信息API与版本管理API共存于 ` frontend/src/api/version.ts ` 文件中,通过不同的接口路径区分
305+ - 系统版本信息:` /api/version ` (GET)
306+ - 版本管理:` /api/versions ` (GET/POST/PUT/DELETE等)
304307
305308### 10. 测试单状态值修复 🔧
306309
@@ -483,9 +486,11 @@ Go Version: go1.24.10
483486- ` frontend/src/api/testCase.ts ` - 更新状态类型定义
484487- ` frontend/src/api/requirement.ts ` - 添加 ` status_changed ` 到 Action 类型定义
485488- ` frontend/src/api/task.ts ` - 添加 ` status_changed ` 和 ` progress_updated ` 到 Action 类型定义
489+ - ` frontend/src/components/AppHeader.vue ` - 添加"关于"菜单项和版本信息弹窗
490+ - ` frontend/src/api/version.ts ` - 添加系统版本信息API(` getVersionInfo ` ),与版本管理API共存
486491
487492** 后端** :
488- - ` backend/cmd/server/main.go ` - 添加数据库备份功能(--backup参数)、服务器停止功能(--stop参数)、服务器重启功能(--restart参数)、版本信息功能(--version参数)、使用flag包重构命令行参数处理
493+ - ` backend/cmd/server/main.go ` - 添加数据库备份功能(--backup参数)、服务器停止功能(--stop参数)、服务器重启功能(--restart参数)、版本信息功能(--version参数)、使用flag包重构命令行参数处理、添加系统版本信息API接口(/api/version)
489494
490495** 脚本** :
491496- ` scripts/release.sh ` - 发布版本脚本,自动更新版本号、创建tag、推送代码
You can’t perform that action at this time.
0 commit comments