fox/internalPb/internal.proto
2025-06-14 13:24:40 +08:00

30 lines
706 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";
package ipb;
option go_package = "fox/ipb";
enum MsgId
{
Unknown = 0;
Internal = -1; // 内部消息id
}
enum MsgType
{
NormalMsg = 0;
RpcMsg = 1;
}
message InternalMsg
{
string serviceName = 1; // 该服务类型下的具体的服务节点名,需要保证该消息是该服务节点发的。否则可能会导致客户端出现路由错误
uint32 connId = 2; // 刚登陆时没有user_id只有conn_id
int64 userId = 3; // 玩家id
int32 msgId = 4; // 消息id
bytes msg = 5; // 消息
MsgType type = 6; // 消息类型
string rpcMsgId = 7; // rpc消息id
int32 rpcCode = 8; // rpc返回码
}