curl --location 'http://proxy.ufer.top/api/messages/sendMessage?userId=0&openid=&unionid=&sessionKey=&username=&password=&phone=&userStatus=0&address=&thumb=&sex=&authed=&grade=&longitude=&latitude=&rate=&createTime=&createBy=0&updateTime=&updateBy=0&enabled=0&revision=0&deleteed=false&lastTime=' \
--header 'token: e30a1f948d694aa990a25b30e0fe87c2' \
--header 'Content-Type: application/json' \
--data '// 文本消息
{
"conversationId":1,
"type":1,
"toUser":7,
"content":"这是文本消息内容"
}
// 图片消息
/**
{
"conversationId":1,
"type":2,
"toUser":7,
"content":"",
"fileUrl":"/message/1/1234.png"
}
// 需求单
{
"conversationId":1,
"toUser":7,
"type":3,
"content":"",
"projectId":8
}
// 报价单
{
"conversationId":1,
"toUser":7,
"type":4,
"content":"",
"tenderId":1
}
// 文件消息
{
"conversationId":1,
"toUser":7,
"type":5,
"content":"",
"fileUrl":"/message/1/1234.png"
}
**/'