fox/ipb/helper.go
2025-06-02 15:29:03 +08:00

24 lines
587 B
Go

package ipb
func MakeMsg(serviceName string, connId uint32, userId int64, msgId int32, msg []byte) *InternalMsg {
return &InternalMsg{
ServiceName: serviceName,
ConnId: connId,
UserId: userId,
MsgId: msgId,
Msg: msg,
}
}
//func MakeRpcMsg(serviceName string, connId uint32, userId int64, msgId int32, msg []byte) *InternalMsg {
// return &InternalMsg{
// ServiceName: serviceName,
// ConnId: connId,
// UserId: userId,
// MsgId: msgId,
// Msg: msg,
// Type: MsgType_RpcMsg,
// RetRpcMsgId: genRpcId(),
// }
//}