新增聊天功能

This commit is contained in:
2024-10-14 17:40:11 +08:00
parent 99ed84f534
commit 245875881c
13 changed files with 360 additions and 12 deletions
+14
View File
@@ -0,0 +1,14 @@
package models
import "time"
type ChatMessage struct {
User Users
Time time.Time
Text string
}
type Message struct {
Cmd string
User UserFollows
ChatMessage ChatMessage
}