2025-05-25 20:34:08 +08:00
|
|
|
|
syntax = "proto3";
|
2025-05-26 20:12:45 +08:00
|
|
|
|
package ipb;
|
|
|
|
|
option go_package = "common/proto/ipb";
|
2025-05-25 20:34:08 +08:00
|
|
|
|
|
|
|
|
|
enum MsgId
|
|
|
|
|
{
|
|
|
|
|
Unknown = 0;
|
2025-05-27 13:14:01 +08:00
|
|
|
|
Internal = -1; // 内部消息id
|
2025-05-25 20:34:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message InternalMsg
|
|
|
|
|
{
|
2025-05-28 20:19:11 +08:00
|
|
|
|
int32 service_name = 1; // 该服务类型下的具体的服务节点名,需要保证该消息是该服务节点发的。否则可能会导致客户端出现路由错误
|
|
|
|
|
uint32 conn_id = 2; // 刚登陆时没有user_id,只有conn_id
|
2025-05-25 20:34:08 +08:00
|
|
|
|
int64 user_id = 3; // 玩家id
|
2025-05-28 20:19:11 +08:00
|
|
|
|
int32 msg_id = 4; // 消息id
|
|
|
|
|
bytes msg = 5; // 消息
|
2025-05-25 20:34:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-05-27 13:14:01 +08:00
|
|
|
|
|