23 lines
419 B
Protocol Buffer
23 lines
419 B
Protocol Buffer
|
package com.ljsd.jieling.protocols;
|
||
|
|
||
|
option optimize_for = SPEED;
|
||
|
|
||
|
// request 编号需要小于 response 编号
|
||
|
|
||
|
message PlayerInfo{
|
||
|
|
||
|
message GetPlayerInfoRequest{
|
||
|
optional int32 num = 1;
|
||
|
optional string str = 2;
|
||
|
optional string str1 = 3;
|
||
|
}
|
||
|
|
||
|
message GetPlayerInfoResponse{
|
||
|
optional int32 sex = 1; // 性别
|
||
|
optional string family = 2; // 家族
|
||
|
optional int32 rank = 3; // 上赛季排名
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|