31 lines
590 B
Protocol Buffer
31 lines
590 B
Protocol Buffer
syntax = "proto2";
|
|
package KeepAlive;
|
|
option java_package = "com.futu.openapi.pb";
|
|
option go_package = "github.com/futuopen/ftapi4go/pb/keepalive";
|
|
|
|
import "Common.proto";
|
|
|
|
message C2S
|
|
{
|
|
required int64 time = 1; //客户端发包时的格林威治时间戳,单位秒
|
|
}
|
|
|
|
message S2C
|
|
{
|
|
required int64 time = 1; //服务器回包时的格林威治时间戳,单位秒
|
|
}
|
|
|
|
message Request
|
|
{
|
|
required C2S c2s = 1;
|
|
}
|
|
|
|
message Response
|
|
{
|
|
required int32 retType = 1 [default = -400]; //RetType,返回结果
|
|
optional string retMsg = 2;
|
|
optional int32 errCode = 3;
|
|
|
|
optional S2C s2c = 4;
|
|
}
|