refactor: 拆分更新类型(全量/补丁)和更新方式(自动/手动),移除force_update字段
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user