From 0fd64fc8acfcad9c583be835c3643f27440c77b5 Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 21 May 2021 10:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E5=92=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.pb.go | 8 ++++---- redis.proto | 4 ++-- string.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/redis.pb.go b/redis.pb.go index f8d81cf..5da4bef 100644 --- a/redis.pb.go +++ b/redis.pb.go @@ -195,7 +195,7 @@ func (m *GetStringResponse) GetValue() string { // 设置key响应结构 type SetResponse struct { - Ret *uint32 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` + Ret *uint64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -203,7 +203,7 @@ func (m *SetResponse) Reset() { *m = SetResponse{} } func (m *SetResponse) String() string { return proto.CompactTextString(m) } func (*SetResponse) ProtoMessage() {} -func (m *SetResponse) GetRet() uint32 { +func (m *SetResponse) GetRet() uint64 { if m != nil && m.Ret != nil { return *m.Ret } @@ -212,7 +212,7 @@ func (m *SetResponse) GetRet() uint32 { // 删除key响应结构 type DelResponse struct { - Ret *uint32 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` + Ret *uint64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -220,7 +220,7 @@ func (m *DelResponse) Reset() { *m = DelResponse{} } func (m *DelResponse) String() string { return proto.CompactTextString(m) } func (*DelResponse) ProtoMessage() {} -func (m *DelResponse) GetRet() uint32 { +func (m *DelResponse) GetRet() uint64 { if m != nil && m.Ret != nil { return *m.Ret } diff --git a/redis.proto b/redis.proto index 767fa7c..97150bd 100644 --- a/redis.proto +++ b/redis.proto @@ -39,12 +39,12 @@ message GetStringResponse { // 设置key响应结构 message SetResponse { - uint32 ret = 1; + uint64 ret = 1; } // 删除key响应结构 message DelResponse { - uint32 ret = 1; + uint64 ret = 1; } // rpc方法 service RedisService { diff --git a/string.go b/string.go index 8eb11fc..0493d4d 100644 --- a/string.go +++ b/string.go @@ -31,7 +31,7 @@ func GetString(key string, url ...string) (string, error) { } //设置 -func Set(key, value string, url ...string) (uint32, error) { +func Set(key, value string, url ...string) (uint64, error) { conn, _, err := Conn(url...) @@ -54,7 +54,7 @@ func Set(key, value string, url ...string) (uint32, error) { } //设置 -func Del(key, value string, url ...string) (uint32, error) { +func Del(key, value string, url ...string) (uint64, error) { conn, _, err := Conn(url...)