diff --git a/product.pb.go b/product.pb.go index 0601c03..04f4d32 100644 --- a/product.pb.go +++ b/product.pb.go @@ -31,7 +31,8 @@ var _ = math.Inf // 使用key查询 type GetRequest struct { - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -39,6 +40,13 @@ func (m *GetRequest) Reset() { *m = GetRequest{} } func (m *GetRequest) String() string { return proto.CompactTextString(m) } func (*GetRequest) ProtoMessage() {} +func (m *GetRequest) GetDbname() string { + if m != nil && m.Dbname != nil { + return *m.Dbname + } + return "" +} + func (m *GetRequest) GetId() string { if m != nil && m.Id != nil { return *m.Id @@ -47,7 +55,8 @@ func (m *GetRequest) GetId() string { } type GetUuidRequest struct { - Uuid *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` + Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` + Uuid *string `protobuf:"bytes,2,opt,name=uuid" json:"uuid,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -55,6 +64,13 @@ func (m *GetUuidRequest) Reset() { *m = GetUuidRequest{} } func (m *GetUuidRequest) String() string { return proto.CompactTextString(m) } func (*GetUuidRequest) ProtoMessage() {} +func (m *GetUuidRequest) GetDbname() string { + if m != nil && m.Dbname != nil { + return *m.Dbname + } + return "" +} + func (m *GetUuidRequest) GetUuid() string { if m != nil && m.Uuid != nil { return *m.Uuid diff --git a/product.proto b/product.proto index c09fca4..973911f 100644 --- a/product.proto +++ b/product.proto @@ -3,11 +3,13 @@ package productrpc; // 使用key查询 message GetRequest { - string id = 1; + string dbname = 1; + string id = 2; } message GetUuidRequest { - string uuid = 1; + string dbname = 1; + string uuid = 2; } // 使用key查询响应结构