新增聊天功能
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -3,4 +3,5 @@ package models
|
||||
// UserFollows 关注用户
|
||||
type UserFollows struct {
|
||||
Users
|
||||
Sort int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user