Files
hk4e/service/game-hk4e/model/chat.go
2022-11-20 15:38:00 +08:00

17 lines
306 B
Go

package model
const (
ChatMsgTypeText = iota
ChatMsgTypeIcon
)
type ChatMsg struct {
Time uint32 `bson:"time"`
ToUid uint32 `bson:"toUid"`
Uid uint32 `bson:"uid"`
IsRead bool `bson:"isRead"`
MsgType uint8 `bson:"msgType"`
Text string `bson:"text"`
Icon uint32 `bson:"icon"`
}