Files
18xchat/Proto/base.proto
T
2025-08-15 00:36:54 +08:00

37 lines
878 B
Protocol Buffer
Raw 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";
option go_package = "./pt";
package ProtoMsg;
import "error.proto";
//公用消息回复
message CommonRsp {
ErrorCode RetCode = 1; //错误码,成功的话是0
string ErrMsg = 2;
int32 MsgId = 3;
int32 SubMsgId = 4;
int32 DataType = 5; //数据类型,1json数据;2protobuff数据
string Data = 6; //回复数据内容
}
enum MsgId {
None = 0; //空,不使用
Account = 1; //账号相关
PlayerData = 2; //通用玩家数据
Admin = 99; //管理端相关
}
enum SubMsgId_Account {
Account_None = 0; //空,不使用
Login = 1; //登录 /login
}
enum SubMsgId_PlayerData {
PlayerData_None = 0; //空,不使用
QueryPlayerData = 1; //请求好友列表 /playerdata/query_player_data, QueryPlayerDataReq
SavePlayerData = 2; //请求新手引导信息 /playerdata/save_player_data, SavePlayerDataReq
}