miduo_protocol/protos/PlayerInfoProto.proto

42 lines
667 B
Protocol Buffer
Raw Normal View History

2018-12-27 17:56:49 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
2019-01-04 15:08:41 +08:00
import "CommonProto.proto";
2018-12-27 17:56:49 +08:00
// request 编号需要小于 response 编号
message PlayerInfo{
2019-01-04 15:08:41 +08:00
message LoginRequest{
optional int32 num = 1;
optional string str = 2;
}
message LoginResponse{
optional int32 resultCode = 1;
optional string newToken = 2;
}
2018-12-27 17:56:49 +08:00
message GetPlayerInfoRequest{
optional int32 num = 1;
optional string str = 2;
}
message GetPlayerInfoResponse{
2019-01-04 15:08:41 +08:00
optional Common.Player player = 1;
2018-12-27 17:56:49 +08:00
}
2019-01-16 16:45:23 +08:00
2018-12-27 17:56:49 +08:00
2019-01-04 15:08:41 +08:00
message GetItemInfoRequest{
optional int32 num = 1;
optional string str = 2;
}
message GetItemInfoResponse{
repeated Common.Item itemlist = 1;
}
2018-12-27 17:56:49 +08:00
}