fox/internalPb/internal.proto

29 lines
669 B
Protocol Buffer
Raw Normal View History

2025-05-29 11:49:24 +08:00
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 service_name = 1; // 该服务类型下的具体的服务节点名,需要保证该消息是该服务节点发的。否则可能会导致客户端出现路由错误
uint32 conn_id = 2; // 刚登陆时没有user_id只有conn_id
int64 user_id = 3; // 玩家id
int32 msg_id = 4; // 消息id
bytes msg = 5; // 消息
MsgType type = 6; // 消息类型
2025-06-02 01:08:12 +08:00
string rpc_msg_id = 7; // rpc msg id
2025-05-29 11:49:24 +08:00
}