Update dto.go

This commit is contained in:
徐俊杰 2025-06-18 19:49:48 +08:00
parent e1fbbfce04
commit 543514dae9

View File

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