文档
测试

接收消息

POST
/api/base/chat/receiveInfo

接口描述

接收消息

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填
token
string
必填

请求参数

参数名
类型
描述
必填
owner_id
string
自己id
必填
owner_type
string
自己类型.employee:雇员;store:门店
必填
party_id
string
对方id
必填
party_type
string
对方类型。employee:雇员;store:门店
必填
last_id
int
最后id
必填

请求示例

``` { "college_id": "", "feedback_id": "" } ```

响应参数

参数名
类型
描述
必填
flag
int
返回状态 示例:0
必填
msg
string
返回消息 示例:success
必填
val
array
数据列表
必填
id
string
消息id
必填
c_date
string
发送时间
必填
info_type
string
消息类型。0:文本;1:图片;2:json数据
必填
content
string
内容
必填
is_owner
string
是否自己发送。1:是;0:否
可选
receive_id
string
接收人id
可选
receive_type
string
接收人类型
可选
send_id
string
发送人id
可选
send_type
string
发送人类型
可选

返回示例

``` { "flag": 0, "msg": "success", "val": [ { "c_date": "2021-11-19 08:52:03", "content": "1", "id": "5", "is_owner": "0", "receive_id": "42", "receive_type": "employee", "send_id": "fbbfe78f93af3d0f15cbc0fd0d0111b5", "send_type": "store" } ] } ```