From a88c5c6e3f2ca51beb7993172f2a2cda1a105efa Mon Sep 17 00:00:00 2001 From: algotao Date: Tue, 16 Sep 2025 18:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AD=98=E5=82=A8=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd.pb.go | 13 +++++++++++-- cmd.proto | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cmd.pb.go b/cmd.pb.go index ac1a776..4f68107 100644 --- a/cmd.pb.go +++ b/cmd.pb.go @@ -2521,6 +2521,7 @@ type ValueItem struct { Uint32S []uint32 `protobuf:"varint,4,rep,packed,name=uint32s,proto3" json:"uint32s,omitempty"` // uint32区域 FlagsWithExpire []*FlagWithExpire `protobuf:"bytes,5,rep,name=flags_with_expire,json=flagsWithExpire,proto3" json:"flags_with_expire,omitempty"` // 标志位区域 LastModifyTime uint32 `protobuf:"varint,6,opt,name=last_modify_time,json=lastModifyTime,proto3" json:"last_modify_time,omitempty"` // 最后修改时间 + Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` // 存储版本 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2597,6 +2598,13 @@ func (x *ValueItem) GetLastModifyTime() uint32 { return 0 } +func (x *ValueItem) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + // TaskListRes 任务列表返回 type TaskListRes struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -3256,14 +3264,15 @@ const file_cmd_proto_rawDesc = "" + "\x0efail_cmd_count\x18\x02 \x01(\rR\ffailCmdCount\x12+\n" + "\acmd_res\x18\x03 \x03(\v2\x12.saasapi.ValueItemR\x06cmdRes\"/\n" + "\bWriteRes\x12#\n" + - "\rfailed_userid\x18\x03 \x03(\tR\ffailedUserid\"\xf9\x01\n" + + "\rfailed_userid\x18\x03 \x03(\tR\ffailedUserid\"\x93\x02\n" + "\tValueItem\x12\x1b\n" + "\tcmd_index\x18\x01 \x01(\rR\bcmdIndex\x120\n" + "\bcmd_code\x18\x02 \x01(\x0e2\x15.saasapi.CmdErrorCodeR\acmdCode\x12\x14\n" + "\x05bytes\x18\x03 \x01(\fR\x05bytes\x12\x18\n" + "\auint32s\x18\x04 \x03(\rR\auint32s\x12C\n" + "\x11flags_with_expire\x18\x05 \x03(\v2\x17.saasapi.FlagWithExpireR\x0fflagsWithExpire\x12(\n" + - "\x10last_modify_time\x18\x06 \x01(\rR\x0elastModifyTime\"2\n" + + "\x10last_modify_time\x18\x06 \x01(\rR\x0elastModifyTime\x12\x18\n" + + "\aversion\x18\a \x01(\rR\aversion\"2\n" + "\vTaskListRes\x12#\n" + "\x05tasks\x18\x01 \x03(\v2\r.saasapi.TaskR\x05tasks\"\xa7\x01\n" + "\rTargetListRes\x12G\n" + diff --git a/cmd.proto b/cmd.proto index 865a0b0..7217a57 100644 --- a/cmd.proto +++ b/cmd.proto @@ -241,6 +241,7 @@ message ValueItem { repeated uint32 uint32s = 4; // uint32区域 repeated FlagWithExpire flags_with_expire = 5; // 标志位区域 uint32 last_modify_time = 6; // 最后修改时间 + uint32 version = 7; // 存储版本 } // TaskListRes 任务列表返回