Browse Source

修改请求参数

master v0.4.1
guzeng 3 years ago
parent
commit
eb17040cd7
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      product.pb.go
  2. +1
    -1
      product.proto

+ 4
- 4
product.pb.go View File

@ -73,7 +73,7 @@ func (m *GetRequest) GetField() string {
type GetUuidRequest struct {
SiteId *string `protobuf:"bytes,1,opt,name=site_id" json:"site_id,omitempty"`
Dbname *string `protobuf:"bytes,2,opt,name=dbname" json:"dbname,omitempty"`
Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
Uuid *string `protobuf:"bytes,3,opt,name=uuid" json:"uuid,omitempty"`
Field *string `protobuf:"bytes,4,opt,name=field" json:"field,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
@ -96,9 +96,9 @@ func (m *GetUuidRequest) GetDbname() string {
return ""
}
func (m *GetUuidRequest) GetId() string {
if m != nil && m.Id != nil {
return *m.Id
func (m *GetUuidRequest) GetUuid() string {
if m != nil && m.Uuid != nil {
return *m.Uuid
}
return ""
}


+ 1
- 1
product.proto View File

@ -12,7 +12,7 @@ message GetRequest {
message GetUuidRequest {
string site_id = 1;
string dbname = 2;
string id = 3;
string uuid = 3;
string field = 4;
}


Loading…
Cancel
Save