From e6aa0dd1a9a74aa9b47323c9586dc3b2781b5e8f Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Mon, 23 Sep 2024 10:03:53 +0800 Subject: [PATCH] proto --- protocol/webapi/common.pb.go | 8 ++++---- protocol/webapi/common.proto | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/protocol/webapi/common.pb.go b/protocol/webapi/common.pb.go index 9bf854c..34d5de1 100644 --- a/protocol/webapi/common.pb.go +++ b/protocol/webapi/common.pb.go @@ -8295,7 +8295,7 @@ type MachineInfo struct { ItemId int32 `protobuf:"varint,6,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //获得道具Id ItemNum int32 `protobuf:"varint,7,opt,name=ItemNum,proto3" json:"ItemNum,omitempty"` //获得道具数量 IconAddr string `protobuf:"bytes,8,opt,name=IconAddr,proto3" json:"IconAddr,omitempty"` //图片地址 - Name int32 `protobuf:"varint,9,opt,name=Name,proto3" json:"Name,omitempty"` //场次名字 + Name string `protobuf:"bytes,9,opt,name=Name,proto3" json:"Name,omitempty"` //场次名字 } func (x *MachineInfo) Reset() { @@ -8386,11 +8386,11 @@ func (x *MachineInfo) GetIconAddr() string { return "" } -func (x *MachineInfo) GetName() int32 { +func (x *MachineInfo) GetName() string { if x != nil { return x.Name } - return 0 + return "" } // etcd /game/match_audience @@ -10095,7 +10095,7 @@ var file_common_proto_rawDesc = []byte{ 0x01, 0x28, 0x05, 0x52, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x63, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x49, 0x63, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x0d, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x0d, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x49, diff --git a/protocol/webapi/common.proto b/protocol/webapi/common.proto index 3bf2237..40e1676 100644 --- a/protocol/webapi/common.proto +++ b/protocol/webapi/common.proto @@ -918,7 +918,7 @@ message MachineInfo{ int32 ItemId = 6; //获得道具Id int32 ItemNum = 7; //获得道具数量 string IconAddr = 8;//图片地址 - int32 Name = 9;//场次名字 + string Name = 9;//场次名字 } // etcd /game/match_audience message MatchAudience {