Browse Source

修改数据结构

master v0.0.2
guzeng 3 years ago
parent
commit
33e81bc445
2 changed files with 22 additions and 4 deletions
  1. +18
    -2
      product.pb.go
  2. +4
    -2
      product.proto

+ 18
- 2
product.pb.go View File

@ -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


+ 4
- 2
product.proto View File

@ -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查询响应结构


Loading…
Cancel
Save