service/vendor/api/proto/wsmessage/msg.go

16 lines
478 B
Go
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.

package wsmessage
const (
WsMsgTypeBroadCast = 100 // 全站消息,发给所有在线的用户
WsMsgType1v1 = 101 // 1v1消息A发给BB发给C私信
WsMsgTypeRoomBroadCast = 102 // 房间消息,即发送给房间全员的消息(刷礼物、
)
// 消息协议
type WsMsg struct {
Id string `json:"id"` // 消息id
Type int32 `json:"t"` // 消息类型见MsgType*
Sid int64 `json:"sid"` // sid
Mid int64 `json:"mid"` // mid
}