Commit 27a173f5666011b331563b2b924db37af9ed48ad

Authored by zhangqijia
1 parent f631f225

fix: 更新背包系统文档,更改角色信息修改协议名字

Showing 3 changed files with 96 additions and 96 deletions   Show diff stats
@@ -227,18 +227,16 @@ func (x *CreateReq) GetDevice() string { @@ -227,18 +227,16 @@ func (x *CreateReq) GetDevice() string {
227 return "" 227 return ""
228 } 228 }
229 229
230 -type RoleRsp struct { 230 +type ChangeTeamReq struct {
231 state protoimpl.MessageState 231 state protoimpl.MessageState
232 sizeCache protoimpl.SizeCache 232 sizeCache protoimpl.SizeCache
233 unknownFields protoimpl.UnknownFields 233 unknownFields protoimpl.UnknownFields
234 234
235 - Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`  
236 - Hero []*Hero `protobuf:"bytes,3,rep,name=hero,proto3" json:"hero,omitempty"`  
237 - Team []*Team `protobuf:"bytes,4,rep,name=team,proto3" json:"team,omitempty"` 235 + Team []*Team `protobuf:"bytes,1,rep,name=team,proto3" json:"team,omitempty"`
238 } 236 }
239 237
240 -func (x *RoleRsp) Reset() {  
241 - *x = RoleRsp{} 238 +func (x *ChangeTeamReq) Reset() {
  239 + *x = ChangeTeamReq{}
242 if protoimpl.UnsafeEnabled { 240 if protoimpl.UnsafeEnabled {
243 mi := &file_game_proto_msgTypes[4] 241 mi := &file_game_proto_msgTypes[4]
244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -246,13 +244,13 @@ func (x *RoleRsp) Reset() { @@ -246,13 +244,13 @@ func (x *RoleRsp) Reset() {
246 } 244 }
247 } 245 }
248 246
249 -func (x *RoleRsp) String() string { 247 +func (x *ChangeTeamReq) String() string {
250 return protoimpl.X.MessageStringOf(x) 248 return protoimpl.X.MessageStringOf(x)
251 } 249 }
252 250
253 -func (*RoleRsp) ProtoMessage() {} 251 +func (*ChangeTeamReq) ProtoMessage() {}
254 252
255 -func (x *RoleRsp) ProtoReflect() protoreflect.Message { 253 +func (x *ChangeTeamReq) ProtoReflect() protoreflect.Message {
256 mi := &file_game_proto_msgTypes[4] 254 mi := &file_game_proto_msgTypes[4]
257 if protoimpl.UnsafeEnabled && x != nil { 255 if protoimpl.UnsafeEnabled && x != nil {
258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -264,44 +262,30 @@ func (x *RoleRsp) ProtoReflect() protoreflect.Message { @@ -264,44 +262,30 @@ func (x *RoleRsp) ProtoReflect() protoreflect.Message {
264 return mi.MessageOf(x) 262 return mi.MessageOf(x)
265 } 263 }
266 264
267 -// Deprecated: Use RoleRsp.ProtoReflect.Descriptor instead.  
268 -func (*RoleRsp) Descriptor() ([]byte, []int) { 265 +// Deprecated: Use ChangeTeamReq.ProtoReflect.Descriptor instead.
  266 +func (*ChangeTeamReq) Descriptor() ([]byte, []int) {
269 return file_game_proto_rawDescGZIP(), []int{4} 267 return file_game_proto_rawDescGZIP(), []int{4}
270 } 268 }
271 269
272 -func (x *RoleRsp) GetRole() *Role {  
273 - if x != nil {  
274 - return x.Role  
275 - }  
276 - return nil  
277 -}  
278 -  
279 -func (x *RoleRsp) GetHero() []*Hero {  
280 - if x != nil {  
281 - return x.Hero  
282 - }  
283 - return nil  
284 -}  
285 -  
286 -func (x *RoleRsp) GetTeam() []*Team { 270 +func (x *ChangeTeamReq) GetTeam() []*Team {
287 if x != nil { 271 if x != nil {
288 return x.Team 272 return x.Team
289 } 273 }
290 return nil 274 return nil
291 } 275 }
292 276
293 -//ResponseCmd UpdateRolePropertyRsp  
294 -type UpdateRolePropertyRsp struct { 277 +type RoleRsp struct {
295 state protoimpl.MessageState 278 state protoimpl.MessageState
296 sizeCache protoimpl.SizeCache 279 sizeCache protoimpl.SizeCache
297 unknownFields protoimpl.UnknownFields 280 unknownFields protoimpl.UnknownFields
298 281
299 - Id []int32 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`  
300 Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` 282 Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
  283 + Hero []*Hero `protobuf:"bytes,3,rep,name=hero,proto3" json:"hero,omitempty"`
  284 + Team []*Team `protobuf:"bytes,4,rep,name=team,proto3" json:"team,omitempty"`
301 } 285 }
302 286
303 -func (x *UpdateRolePropertyRsp) Reset() {  
304 - *x = UpdateRolePropertyRsp{} 287 +func (x *RoleRsp) Reset() {
  288 + *x = RoleRsp{}
305 if protoimpl.UnsafeEnabled { 289 if protoimpl.UnsafeEnabled {
306 mi := &file_game_proto_msgTypes[5] 290 mi := &file_game_proto_msgTypes[5]
307 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -309,13 +293,13 @@ func (x *UpdateRolePropertyRsp) Reset() { @@ -309,13 +293,13 @@ func (x *UpdateRolePropertyRsp) Reset() {
309 } 293 }
310 } 294 }
311 295
312 -func (x *UpdateRolePropertyRsp) String() string { 296 +func (x *RoleRsp) String() string {
313 return protoimpl.X.MessageStringOf(x) 297 return protoimpl.X.MessageStringOf(x)
314 } 298 }
315 299
316 -func (*UpdateRolePropertyRsp) ProtoMessage() {} 300 +func (*RoleRsp) ProtoMessage() {}
317 301
318 -func (x *UpdateRolePropertyRsp) ProtoReflect() protoreflect.Message { 302 +func (x *RoleRsp) ProtoReflect() protoreflect.Message {
319 mi := &file_game_proto_msgTypes[5] 303 mi := &file_game_proto_msgTypes[5]
320 if protoimpl.UnsafeEnabled && x != nil { 304 if protoimpl.UnsafeEnabled && x != nil {
321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 305 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -327,35 +311,44 @@ func (x *UpdateRolePropertyRsp) ProtoReflect() protoreflect.Message { @@ -327,35 +311,44 @@ func (x *UpdateRolePropertyRsp) ProtoReflect() protoreflect.Message {
327 return mi.MessageOf(x) 311 return mi.MessageOf(x)
328 } 312 }
329 313
330 -// Deprecated: Use UpdateRolePropertyRsp.ProtoReflect.Descriptor instead.  
331 -func (*UpdateRolePropertyRsp) Descriptor() ([]byte, []int) { 314 +// Deprecated: Use RoleRsp.ProtoReflect.Descriptor instead.
  315 +func (*RoleRsp) Descriptor() ([]byte, []int) {
332 return file_game_proto_rawDescGZIP(), []int{5} 316 return file_game_proto_rawDescGZIP(), []int{5}
333 } 317 }
334 318
335 -func (x *UpdateRolePropertyRsp) GetId() []int32 { 319 +func (x *RoleRsp) GetRole() *Role {
336 if x != nil { 320 if x != nil {
337 - return x.Id 321 + return x.Role
338 } 322 }
339 return nil 323 return nil
340 } 324 }
341 325
342 -func (x *UpdateRolePropertyRsp) GetRole() *Role { 326 +func (x *RoleRsp) GetHero() []*Hero {
343 if x != nil { 327 if x != nil {
344 - return x.Role 328 + return x.Hero
345 } 329 }
346 return nil 330 return nil
347 } 331 }
348 332
349 -type ChangeTeamReq struct { 333 +func (x *RoleRsp) GetTeam() []*Team {
  334 + if x != nil {
  335 + return x.Team
  336 + }
  337 + return nil
  338 +}
  339 +
  340 +//ResponseCmd RoleUpdatePropertyRsp
  341 +type RoleUpdatePropertyRsp struct {
350 state protoimpl.MessageState 342 state protoimpl.MessageState
351 sizeCache protoimpl.SizeCache 343 sizeCache protoimpl.SizeCache
352 unknownFields protoimpl.UnknownFields 344 unknownFields protoimpl.UnknownFields
353 345
354 - Team []*Team `protobuf:"bytes,1,rep,name=team,proto3" json:"team,omitempty"` 346 + Id []int32 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
  347 + Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
355 } 348 }
356 349
357 -func (x *ChangeTeamReq) Reset() {  
358 - *x = ChangeTeamReq{} 350 +func (x *RoleUpdatePropertyRsp) Reset() {
  351 + *x = RoleUpdatePropertyRsp{}
359 if protoimpl.UnsafeEnabled { 352 if protoimpl.UnsafeEnabled {
360 mi := &file_game_proto_msgTypes[6] 353 mi := &file_game_proto_msgTypes[6]
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 354 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -363,13 +356,13 @@ func (x *ChangeTeamReq) Reset() { @@ -363,13 +356,13 @@ func (x *ChangeTeamReq) Reset() {
363 } 356 }
364 } 357 }
365 358
366 -func (x *ChangeTeamReq) String() string { 359 +func (x *RoleUpdatePropertyRsp) String() string {
367 return protoimpl.X.MessageStringOf(x) 360 return protoimpl.X.MessageStringOf(x)
368 } 361 }
369 362
370 -func (*ChangeTeamReq) ProtoMessage() {} 363 +func (*RoleUpdatePropertyRsp) ProtoMessage() {}
371 364
372 -func (x *ChangeTeamReq) ProtoReflect() protoreflect.Message { 365 +func (x *RoleUpdatePropertyRsp) ProtoReflect() protoreflect.Message {
373 mi := &file_game_proto_msgTypes[6] 366 mi := &file_game_proto_msgTypes[6]
374 if protoimpl.UnsafeEnabled && x != nil { 367 if protoimpl.UnsafeEnabled && x != nil {
375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -381,14 +374,21 @@ func (x *ChangeTeamReq) ProtoReflect() protoreflect.Message { @@ -381,14 +374,21 @@ func (x *ChangeTeamReq) ProtoReflect() protoreflect.Message {
381 return mi.MessageOf(x) 374 return mi.MessageOf(x)
382 } 375 }
383 376
384 -// Deprecated: Use ChangeTeamReq.ProtoReflect.Descriptor instead.  
385 -func (*ChangeTeamReq) Descriptor() ([]byte, []int) { 377 +// Deprecated: Use RoleUpdatePropertyRsp.ProtoReflect.Descriptor instead.
  378 +func (*RoleUpdatePropertyRsp) Descriptor() ([]byte, []int) {
386 return file_game_proto_rawDescGZIP(), []int{6} 379 return file_game_proto_rawDescGZIP(), []int{6}
387 } 380 }
388 381
389 -func (x *ChangeTeamReq) GetTeam() []*Team { 382 +func (x *RoleUpdatePropertyRsp) GetId() []int32 {
390 if x != nil { 383 if x != nil {
391 - return x.Team 384 + return x.Id
  385 + }
  386 + return nil
  387 +}
  388 +
  389 +func (x *RoleUpdatePropertyRsp) GetRole() *Role {
  390 + if x != nil {
  391 + return x.Role
392 } 392 }
393 return nil 393 return nil
394 } 394 }
@@ -457,22 +457,22 @@ var file_game_proto_rawDesc = []byte{ @@ -457,22 +457,22 @@ var file_game_proto_rawDesc = []byte{
457 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 457 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
458 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 458 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a,
459 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 459 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64,
460 - 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0x6f, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x73, 0x70,  
461 - 0x12, 0x20, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c,  
462 - 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f,  
463 - 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,  
464 - 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04,  
465 - 0x68, 0x65, 0x72, 0x6f, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x03,  
466 - 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x54, 0x65, 0x61, 0x6d,  
467 - 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x49, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,  
468 - 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x73, 0x70, 0x12,  
469 - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12,  
470 - 0x20, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e,  
471 - 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c,  
472 - 0x65, 0x22, 0x31, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x52,  
473 - 0x65, 0x71, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,  
474 - 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x04,  
475 - 0x74, 0x65, 0x61, 0x6d, 0x22, 0x2a, 0x0a, 0x12, 0x52, 0x6f, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 460 + 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0x31, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54,
  461 + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x01,
  462 + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x54, 0x65,
  463 + 0x61, 0x6d, 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x6f, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x65,
  464 + 0x52, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  465 + 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52,
  466 + 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x03, 0x20,
  467 + 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x48, 0x65, 0x72,
  468 + 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18,
  469 + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x54,
  470 + 0x65, 0x61, 0x6d, 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x49, 0x0a, 0x15, 0x52, 0x6f, 0x6c,
  471 + 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52,
  472 + 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x02,
  473 + 0x69, 0x64, 0x12, 0x20, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  474 + 0x32, 0x0c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04,
  475 + 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x2a, 0x0a, 0x12, 0x52, 0x6f, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61,
476 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x74, 476 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x74,
477 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 477 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
478 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 478 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
@@ -497,20 +497,20 @@ var file_game_proto_goTypes = []interface{}{ @@ -497,20 +497,20 @@ var file_game_proto_goTypes = []interface{}{
497 (*HeartRsp)(nil), // 1: game.HeartRsp 497 (*HeartRsp)(nil), // 1: game.HeartRsp
498 (*LoginReq)(nil), // 2: game.LoginReq 498 (*LoginReq)(nil), // 2: game.LoginReq
499 (*CreateReq)(nil), // 3: game.CreateReq 499 (*CreateReq)(nil), // 3: game.CreateReq
500 - (*RoleRsp)(nil), // 4: game.RoleRsp  
501 - (*UpdateRolePropertyRsp)(nil), // 5: game.UpdateRolePropertyRsp  
502 - (*ChangeTeamReq)(nil), // 6: game.ChangeTeamReq 500 + (*ChangeTeamReq)(nil), // 4: game.ChangeTeamReq
  501 + (*RoleRsp)(nil), // 5: game.RoleRsp
  502 + (*RoleUpdatePropertyRsp)(nil), // 6: game.RoleUpdatePropertyRsp
503 (*RoleUpdateItemsRsp)(nil), // 7: game.RoleUpdateItemsRsp 503 (*RoleUpdateItemsRsp)(nil), // 7: game.RoleUpdateItemsRsp
504 - (*Role)(nil), // 8: models.Role  
505 - (*Hero)(nil), // 9: models.Hero  
506 - (*Team)(nil), // 10: models.Team 504 + (*Team)(nil), // 8: models.Team
  505 + (*Role)(nil), // 9: models.Role
  506 + (*Hero)(nil), // 10: models.Hero
507 } 507 }
508 var file_game_proto_depIdxs = []int32{ 508 var file_game_proto_depIdxs = []int32{
509 - 8, // 0: game.RoleRsp.role:type_name -> models.Role  
510 - 9, // 1: game.RoleRsp.hero:type_name -> models.Hero  
511 - 10, // 2: game.RoleRsp.team:type_name -> models.Team  
512 - 8, // 3: game.UpdateRolePropertyRsp.role:type_name -> models.Role  
513 - 10, // 4: game.ChangeTeamReq.team:type_name -> models.Team 509 + 8, // 0: game.ChangeTeamReq.team:type_name -> models.Team
  510 + 9, // 1: game.RoleRsp.role:type_name -> models.Role
  511 + 10, // 2: game.RoleRsp.hero:type_name -> models.Hero
  512 + 8, // 3: game.RoleRsp.team:type_name -> models.Team
  513 + 9, // 4: game.RoleUpdatePropertyRsp.role:type_name -> models.Role
514 5, // [5:5] is the sub-list for method output_type 514 5, // [5:5] is the sub-list for method output_type
515 5, // [5:5] is the sub-list for method input_type 515 5, // [5:5] is the sub-list for method input_type
516 5, // [5:5] is the sub-list for extension type_name 516 5, // [5:5] is the sub-list for extension type_name
@@ -574,7 +574,7 @@ func file_game_proto_init() { @@ -574,7 +574,7 @@ func file_game_proto_init() {
574 } 574 }
575 } 575 }
576 file_game_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 576 file_game_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
577 - switch v := v.(*RoleRsp); i { 577 + switch v := v.(*ChangeTeamReq); i {
578 case 0: 578 case 0:
579 return &v.state 579 return &v.state
580 case 1: 580 case 1:
@@ -586,7 +586,7 @@ func file_game_proto_init() { @@ -586,7 +586,7 @@ func file_game_proto_init() {
586 } 586 }
587 } 587 }
588 file_game_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 588 file_game_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
589 - switch v := v.(*UpdateRolePropertyRsp); i { 589 + switch v := v.(*RoleRsp); i {
590 case 0: 590 case 0:
591 return &v.state 591 return &v.state
592 case 1: 592 case 1:
@@ -598,7 +598,7 @@ func file_game_proto_init() { @@ -598,7 +598,7 @@ func file_game_proto_init() {
598 } 598 }
599 } 599 }
600 file_game_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 600 file_game_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
601 - switch v := v.(*ChangeTeamReq); i { 601 + switch v := v.(*RoleUpdatePropertyRsp); i {
602 case 0: 602 case 0:
603 return &v.state 603 return &v.state
604 case 1: 604 case 1:
pb/protocode.pb.go
@@ -29,9 +29,9 @@ const ( @@ -29,9 +29,9 @@ const (
29 ProtoCode_HeartRsp ProtoCode = 3 29 ProtoCode_HeartRsp ProtoCode = 3
30 ProtoCode_LoginReq ProtoCode = 4 30 ProtoCode_LoginReq ProtoCode = 4
31 ProtoCode_CreateReq ProtoCode = 5 31 ProtoCode_CreateReq ProtoCode = 5
32 - ProtoCode_RoleRsp ProtoCode = 6  
33 - ProtoCode_UpdateRolePropertyRsp ProtoCode = 7  
34 - ProtoCode_ChangeTeamReq ProtoCode = 8 32 + ProtoCode_ChangeTeamReq ProtoCode = 6
  33 + ProtoCode_RoleRsp ProtoCode = 7
  34 + ProtoCode_RoleUpdatePropertyRsp ProtoCode = 8
35 ProtoCode_RoleUpdateItemsRsp ProtoCode = 9 35 ProtoCode_RoleUpdateItemsRsp ProtoCode = 9
36 ) 36 )
37 37
@@ -44,9 +44,9 @@ var ( @@ -44,9 +44,9 @@ var (
44 3: "HeartRsp", 44 3: "HeartRsp",
45 4: "LoginReq", 45 4: "LoginReq",
46 5: "CreateReq", 46 5: "CreateReq",
47 - 6: "RoleRsp",  
48 - 7: "UpdateRolePropertyRsp",  
49 - 8: "ChangeTeamReq", 47 + 6: "ChangeTeamReq",
  48 + 7: "RoleRsp",
  49 + 8: "RoleUpdatePropertyRsp",
50 9: "RoleUpdateItemsRsp", 50 9: "RoleUpdateItemsRsp",
51 } 51 }
52 ProtoCode_value = map[string]int32{ 52 ProtoCode_value = map[string]int32{
@@ -56,9 +56,9 @@ var ( @@ -56,9 +56,9 @@ var (
56 "HeartRsp": 3, 56 "HeartRsp": 3,
57 "LoginReq": 4, 57 "LoginReq": 4,
58 "CreateReq": 5, 58 "CreateReq": 5,
59 - "RoleRsp": 6,  
60 - "UpdateRolePropertyRsp": 7,  
61 - "ChangeTeamReq": 8, 59 + "ChangeTeamReq": 6,
  60 + "RoleRsp": 7,
  61 + "RoleUpdatePropertyRsp": 8,
62 "RoleUpdateItemsRsp": 9, 62 "RoleUpdateItemsRsp": 9,
63 } 63 }
64 ) 64 )
@@ -100,11 +100,11 @@ var file_protocode_proto_rawDesc = []byte{ @@ -100,11 +100,11 @@ var file_protocode_proto_rawDesc = []byte{
100 0x52, 0x73, 0x70, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x72, 0x74, 0x52, 0x65, 100 0x52, 0x73, 0x70, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x72, 0x74, 0x52, 0x65,
101 0x71, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x72, 0x74, 0x52, 0x73, 0x70, 0x10, 101 0x71, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x72, 0x74, 0x52, 0x73, 0x70, 0x10,
102 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x10, 0x04, 0x12, 102 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x10, 0x04, 0x12,
103 - 0x0d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x10, 0x05, 0x12, 0x0b,  
104 - 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x73, 0x70, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55,  
105 - 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,  
106 - 0x79, 0x52, 0x73, 0x70, 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,  
107 - 0x54, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x6f, 0x6c, 103 + 0x0d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x10, 0x05, 0x12, 0x11,
  104 + 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x10,
  105 + 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x73, 0x70, 0x10, 0x07, 0x12, 0x19,
  106 + 0x0a, 0x15, 0x52, 0x6f, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70,
  107 + 0x65, 0x72, 0x74, 0x79, 0x52, 0x73, 0x70, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x6f, 0x6c,
108 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x73, 0x70, 0x10, 108 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x73, 0x70, 0x10,
109 0x09, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 109 0x09, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
110 0x72, 0x6f, 0x74, 0x6f, 0x33, 110 0x72, 0x6f, 0x74, 0x6f, 0x33,
1 -Subproject commit 4d33c2f17e7228c02ce1898e1166ce46939a79f7 1 +Subproject commit 55f842e18ed04c3b9841618400575e292aa5c1f3