3.5 指挥室协同记录查询
3.5 指挥室协同记录查询
简要描述
- 第三方系统通过接口查询指挥室协同记录
请求URL
{host}/api/openapi/cr/message/query
请求方式
- GET
请求头
参数名 | 类型 | 说明 |
---|---|---|
Authorization | String | 客户端认证请求头,请求头对应的值为 "Basic c3dvcmQ6c3dvcmRfc2VjcmV0",其中"c3dvcmQ6c3dvcmRfc2VjcmV0"为clientId:clientSecret串转换为的base64编码 |
Blade-Auth | String | 令牌认证请求头,请求头对应的值为调用 /oauth/token 接口返回的参数 token_type 和 access_token的拼接并以空格隔开,即"{token_type} {access_token}" |
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
---|---|---|---|---|
roomId | 指挥室id | query | true | string |
messageTime | 会输出这个时间点后面的聊天记录,格式“yyyy-mm-dd”(包含传参的那个时间点) | query | false | string |
current | 当前页(不传默认为1) | query | false | integer |
size | 每页的数量(不传默认为10) | query | false | integer |
响应参数:
参数名称 | 参数说明 | 类型 |
---|---|---|
code | 状态码 | integer |
data | 承载数据 | List |
-id | 数据id | string |
-roomId | 指挥室id | string |
-userId | 系统用户id | string |
-deptName | 部门名称 | string |
-type | 消息类型 | string |
-mediaId | 媒体id | string |
-fileUrl | 文件地址 | string |
-duration | 音频时长 | string |
-content | 消息内容 | string |
-longitude | 经度 | string |
-latitude | 纬度 | string |
-address | 详细地址 | string |
-timestamp | 时间戳 | string |
-createTime | 创建时间 | string |
-userName | 发送者姓名 | string |
-avatar | 发送者头像 | string |
msg | 返回消息 | string |
success | 是否成功 | boolean |
响应示例:
{
"code": 200,
"success": true,
"data": {
"records": [
{
"id": "1656xxxxxxxxxxx3665",
"roomId": "1656xxxxxxxxxxx7298",
"userId": "1528xxxxxxxxxxx1058",
"deptName": "发送者部门名称",
"type": 3,
"mediaId": "浙政钉媒体id",
"fileUrl": "文件地址",
"duration": "音频时长",
"content": "消息内容",
"longitude": "经度",
"latitude": "纬度",
"address": "详细地址",
"timestamp": 1683xxxxx8743,
"createTime": "2023-05-11 10:27:29",
"isDeleted": 0,
"userName": "发送者姓名",
"avatar": "发送者头像",
"unRead": 0,
"thirdObject": {}
}
],
"total": 18,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": "",
"maxLimit": "",
"searchCount": true,
"pages": 2
},
"msg": "操作成功"
}