Files
hk4e/gate-hk4e-api/proto/a_top_net_msg.go
2022-11-20 15:38:00 +08:00

24 lines
616 B
Go

package proto
import pb "google.golang.org/protobuf/proto"
const (
NormalMsg = iota
UserRegNotify
UserLoginNotify
UserOfflineNotify
ClientRttNotify
ClientTimeNotify
)
type NetMsg struct {
UserId uint32 `msgpack:"UserId"`
EventId uint16 `msgpack:"EventId"`
ApiId uint16 `msgpack:"ApiId"`
ClientSeq uint32 `msgpack:"ClientSeq"`
PayloadMessage pb.Message `msgpack:"-"`
PayloadMessageData []byte `msgpack:"PayloadMessageData"`
ClientRtt uint32 `msgpack:"ClientRtt"`
ClientTime uint32 `msgpack:"ClientTime"`
}