15 lines
473 B
Go
15 lines
473 B
Go
|
|
package proto
|
||
|
|
|
||
|
|
type AIQueueMessage struct {
|
||
|
|
Type string `json:"type"` //声明不同消息类型
|
||
|
|
ID uint `json:"id"` //消息id
|
||
|
|
Msg string `json:"msg"` //原始json消息
|
||
|
|
}
|
||
|
|
|
||
|
|
type WSMessage struct {
|
||
|
|
Type string `json:"type"` //接收及发送消息类型
|
||
|
|
Msg string `json:"msg"` //消息内容,只进行转发,不做处理
|
||
|
|
SessionID int `json:"session_id"` //应用层会话id
|
||
|
|
ToID int `json:"to_id"` //接收者id
|
||
|
|
}
|