36 lines
1.5 KiB
Protocol Buffer
36 lines
1.5 KiB
Protocol Buffer
|
||
syntax = "proto3";
|
||
option go_package = "./pt";
|
||
package ProtoMsg;
|
||
|
||
|
||
//请求登录
|
||
message LoginReq {
|
||
string GameName = 1; //游戏名字,作为不同游戏的标识
|
||
string Identifier = 2; //身份识别码,游客的话是设备号,微信的话是openid,googleplay用户的话是gp平台uid
|
||
int32 IdentityType = 3; //身份类型,1:游客;2:微信;3:googleplay;4:寰城
|
||
int32 OperateType = 4; //操作类型,1:登录界面;2:断线重连;3:其他
|
||
string ShareDeposit = 5; //微信邀请分享的寄存内容,如果不是邀请玩家,就填空
|
||
optional string MachineIdentifier = 6; //机器设备名
|
||
optional string SdkUid = 7; //sdk体系的UID,比如寰城
|
||
}
|
||
|
||
//登录回复
|
||
message LoginRsp {
|
||
|
||
string GameName = 1; //游戏名字
|
||
string Identifier = 2; //身份识别码,游客的话是设备号,googleplay用户的话是gp平台uid
|
||
int32 IdentityType = 3; //身份类型,1:游客;2:微信;3:googleplay
|
||
int32 OperateType = 4; //操作类型,1:登录界面;2:断线重连;3:其他
|
||
int64 Uid = 5; //玩家Uid
|
||
string Token = 6; //临时有效的token认证
|
||
int64 ServerTime = 7; //服务端时间戳
|
||
int32 TimezoneOffset = 8; //服务器时区
|
||
string Ip = 10; //公网IP
|
||
optional string MachineIdentifier = 11; //机器设备名
|
||
optional string SdkUid = 12; //sdk体系的UID,比如寰城
|
||
optional bool IsNewGuide = 13; //是否新手
|
||
optional bool IsNewRegist = 14; //是否刚注册
|
||
optional int64 LastLoginTime = 15; //上次登陆时间
|
||
}
|