mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化架构
This commit is contained in:
16
gs/model/chat.go
Normal file
16
gs/model/chat.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user