Compare commits
No commits in common. "bfe244450b0c8d1b38d0cbce478d8cd0c3a5f460" and "b858a599d033011b18fc3a24fb0273260d4454da" have entirely different histories.
bfe244450b
...
b858a599d0
@ -31,10 +31,8 @@ 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关联的客户端,通知客户端有新消息,然后调用接口获取消息
|
||||||
|
Loading…
Reference in New Issue
Block a user