marineparkclient/assets/script/netPb/token.proto
2023-08-15 11:09:12 +08:00

35 lines
1.1 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package tokenproto;
//客户端到服务器
enum ENUM_C2S_ID {
TOKEN_BY_CLIENT = 1;//设备号获取
TOKEN_BY_ACCOUNT = 2;//账号获取
TOKEN_BY_PLATFORM = 3;//平台登录(wechat,qq..)
}
//服务器到客户端
enum ENUM_S2C_ID {
TOKEN_RESP = 100;//token返回结果
}
//请求游客登录消息体
message CMD_C2S_CLIENTINFO
{
string uuid = 1; //设备号
}
//账号登录
message CMD_C2S_ACCOUNT
{
string account = 2; //账号
string code = 3; //密码
}
////////////////////////////////////////////////////////////////////////////////////////
//登录结果
message CMD_S2C_TOKEN_INFO
{
uint32 code = 1; //0表示获取正确其他表示获取失败
string tokenStr = 2;
}