refactor: 拆分更新类型(全量/补丁)和更新方式(自动/手动),移除force_update字段

This commit is contained in:
2026-05-08 23:34:14 +08:00
parent de0de10b8d
commit 65fa7146e8
12 changed files with 157 additions and 61 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
package main
package main
import (
"log"
@@ -122,10 +122,12 @@ GET /api/v1/app/{appKey}/check-update?version=1.0.0
"message": "success",
"data": {
"has_update": true,
"force_update": false,
"latest_version": "2.0.0",
"download_url": "http://example.com/download/app-v2.0.0.zip",
"file_size": 10240000,
"update_strategy": "optional",
"update_type": "full",
"update_method": "auto",
"description": "新版本修复了若干bug"
}
}