mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:42:26 +08:00
23 lines
547 B
Go
23 lines
547 B
Go
package model
|
|
|
|
import (
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
const (
|
|
ChatMsgTypeText = iota
|
|
ChatMsgTypeIcon
|
|
)
|
|
|
|
type ChatMsg struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty"`
|
|
Sequence uint32 `bson:"-"`
|
|
Time uint32 `bson:"Time"`
|
|
Uid uint32 `bson:"Uid"`
|
|
ToUid uint32 `bson:"ToUid"`
|
|
IsRead bool `bson:"IsRead"`
|
|
MsgType uint8 `bson:"MsgType"`
|
|
Text string `bson:"Text"`
|
|
Icon uint32 `bson:"Icon"`
|
|
}
|