38 lines
662 B
Protocol Buffer
38 lines
662 B
Protocol Buffer
package com.ljsd.jieling.protocols;
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
import "CommonProto.proto";
|
|
|
|
// request 编号需要小于 response 编号
|
|
|
|
message LoginRequest{
|
|
optional int32 num = 1;
|
|
optional string openId = 2;
|
|
optional string str = 3;
|
|
}
|
|
|
|
message LoginResponse{
|
|
optional int32 resultCode = 1;
|
|
optional string newToken = 2;
|
|
}
|
|
|
|
|
|
message GetPlayerInfoRequest{
|
|
optional int32 num = 1;
|
|
optional string str = 2;
|
|
}
|
|
|
|
message GetPlayerInfoResponse{
|
|
optional Player player = 1;
|
|
}
|
|
|
|
|
|
message GetItemInfoRequest{
|
|
optional int32 num = 1;
|
|
optional string str = 2;
|
|
}
|
|
|
|
message GetItemInfoResponse{
|
|
repeated Item itemlist = 1;
|
|
} |