修改协议

This commit is contained in:
2025-04-08 12:20:41 +08:00
parent 74b0033e45
commit 4fc2aeb9c4
6 changed files with 44 additions and 54 deletions

View File

@@ -57,7 +57,7 @@ message Bytes {
message Uint32s {
repeated uint32 uint32s = 1; // 写入的uint32
uint64 index_1 = 2; // 写入uint32的索引值(0..15) 最多 16 个
//uint64 index_2 = 3; // 写入uint32的索引值(64..127)(当前不支持)
//uint64 index_2 = 3; // 写入uint32的索引值(当前不支持)
}
// FlagsWithExpire 写入标志位区域
@@ -77,15 +77,15 @@ message FlagWithExpire {
enum UserIdType {
DEVICEID = 0; // 设备号
OPENID = 1; // OpenId
INNERID1 = 10; // 内部ID1
INNERID1 = 10; // 内部ID1
}
// ColumnWrite 全量列式写入命令
message ColumnWrite {
bool is_clear_all_first = 1; // 是否先执行清空
Bytes write_bytes = 2; // byte区域
Uint32s write_uint32s = 3; // uint32区域
FlagsWithExpire write_flags_with_expire = 4; // 标志位区域
bool is_clear_all_first = 5; // 是否先执行清空
}
message Task {
@@ -131,7 +131,7 @@ message FileInfo {
message FileBlock {
string block_sha256 = 1; // 块的sha256
uint64 block_length = 2; // 块的字节长度
bool uploaded = 3; // 是否已上传在TaskInfo请求返回
bool uploaded = 3; // 是否已上传(在TaskCreate/TaskInfo请求返回
}
// SaasRes 命令返回
@@ -145,8 +145,8 @@ message SaasRes {
Task task_create_res = 20; // 创建任务返回状态
TaskListRes task_list_res = 21; // 任务列表返回状态
Task task_run_res = 22; // 运行任务返回状态
Task task_info_res = 23; // 任务详情返回状态
Task task_delete_res = 24; // 删除任务返回状态
Task task_delete_res = 23; // 删除任务返回状态
Task task_info_res = 24; // 任务详情返回状态
}
}