miduo_protocol/protos/PlayerInfoProto.proto

42 lines
720 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 编号
2019-01-21 17:51:08 +08:00
message ErrorMsgResponse{
optional string msg = 1;
}
2019-01-04 15:08:41 +08:00
message LoginRequest{
optional int32 num = 1;
2019-01-17 14:37:08 +08:00
optional string openId = 2;
optional string str = 3;
2019-01-04 15:08:41 +08:00
}
message LoginResponse{
optional int32 resultCode = 1;
2019-01-17 20:46:03 +08:00
optional string newToken = 2;
2019-01-04 15:08:41 +08:00
}
2018-12-27 17:56:49 +08:00
message GetPlayerInfoRequest{
optional int32 num = 1;
optional string str = 2;
}
message GetPlayerInfoResponse{
2019-01-17 19:09:23 +08:00
optional 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{
2019-01-17 19:09:23 +08:00
repeated Item itemlist = 1;
2019-01-17 19:24:08 +08:00
}