Merge branch 'chat' into dev

This commit is contained in:
徐俊杰 2025-06-18 19:50:02 +08:00
commit bfe244450b

View File

@ -31,8 +31,10 @@ type MessageMedia struct {
// 客户端发送消息请求使用api发送消息
type NewMessageRequest struct {
Waiter bool `json:"waiter"` //是否是客服发送,客服没有userId
Robot bool `json:"-"` //是否机器人发送
SessionId string `json:"sessionId"`
Message
AtUserId int64 `json:"atUserId"` //指定发送给sessionId中的某一个用户
}
// 服务端接收到消息后使用websocket发送给userId关联的客户端通知客户端有新消息然后调用接口获取消息