From 8eb76a0df295211a1b8caef4417d12a7ae40ff2c Mon Sep 17 00:00:00 2001 From: gjs Date: Fri, 30 Oct 2026 09:21:31 +0800 Subject: [PATCH] change log-times time type --- rpc/water/pb/water.pb.go | 8 ++++---- rpc/water/water.pb | Bin 14523 -> 14523 bytes rpc/water/water.proto | 2 +- .../water/internal/logic/logItemsLogic.go | 12 +++++------- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/rpc/water/pb/water.pb.go b/rpc/water/pb/water.pb.go index 08680db..93ea87f 100644 --- a/rpc/water/pb/water.pb.go +++ b/rpc/water/pb/water.pb.go @@ -158,7 +158,7 @@ type LogItemsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` + Time []string `protobuf:"bytes,3,rep,name=time,proto3" json:"time,omitempty"` HostCode string `protobuf:"bytes,4,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -208,11 +208,11 @@ func (x *LogItemsRequest) GetSize() int32 { return 0 } -func (x *LogItemsRequest) GetTime() string { +func (x *LogItemsRequest) GetTime() []string { if x != nil { return x.Time } - return "" + return nil } func (x *LogItemsRequest) GetHostCode() string { @@ -476,7 +476,7 @@ const file_water_water_proto_rawDesc = "" + "\x0fLogItemsRequest\x12\x12\n" + "\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" + "\x04size\x18\x02 \x01(\x05R\x04size\x12\x12\n" + - "\x04time\x18\x03 \x01(\tR\x04time\x12\x1b\n" + + "\x04time\x18\x03 \x03(\tR\x04time\x12\x1b\n" + "\thost_code\x18\x04 \x01(\tR\bhostCode\"T\n" + "\rAddLogRequest\x12\x1b\n" + "\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x12\n" + diff --git a/rpc/water/water.pb b/rpc/water/water.pb index f0d4ae4340f8c7ba24deff7f2aa3893071bf7e04..24ae2ebd2a681fcea2172f02306f376764b938a3 100644 GIT binary patch delta 14 Wcmdm8xVvz}XA?%|&0kE8GXnrPL