更新proto

This commit is contained in:
2025-12-03 14:06:56 +08:00
parent 72d70e90f1
commit 7974955335
4 changed files with 509 additions and 525 deletions

View File

@@ -93,7 +93,6 @@ message PrepareUpdateReq {
message RequestFile {
string task_id = 1; // 升级任务ID
string filepath = 2; // 请求的文件路径 (例如 "/manifest.json" 或 "/main.py")
uint32 retry_count = 3; // 设备请求该文件的重试次数
}
// FileResponse: 平台响应设备请求,发送单个文件的完整内容
@@ -106,9 +105,8 @@ message FileResponse {
// UpdateStatusReport: 设备向平台报告升级状态
message UpdateStatusReport {
string device_id = 1; // 设备ID
string task_id = 2; // 升级任务ID
string current_version = 3; // 操作完成后的当前版本
string task_id = 1; // 升级任务ID
string current_version = 2; // 操作完成后的当前版本
enum Status {
STATUS_UNKNOWN = 0;
@@ -121,9 +119,9 @@ message UpdateStatusReport {
// --- 平台推断的状态 (数据库记录用) ---
FAILED_TIMEOUT = 5; // 平台在超时后仍未收到SUCCESS报告将任务标记为此状态
}
Status status = 4; // 升级的最终状态
string error_message = 6; // 人类可读的详细错误信息
string failed_file = 7; // 失败时关联的文件路径 (可选)
Status status = 3; // 升级的最终状态
string error_message = 4; // 人类可读的详细错误信息
string failed_file = 5; // 失败时关联的文件路径 (可选)
}
```