主题
IM聊天室服务-获取会话人员信息 FunctionCode | SER-B006
简介
获取会话人员信息
接口说明
- 请求方式
POST
- Headers
Content-Type: application/json
- Headers
Authorization: Bearer ${access_token}
正式环境 | 测试环境 |
---|---|
https://linkingcloud.cn/#/contact-us | http://localhost:5107/eplustoolim/api/conversation/userInfo |
请求参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
conversationId | 会话外部Id | string | 是 |
提示
无
返回参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
code | 错误码(1标识成功) | int | 是 |
data | 返回数据。 | object | 是 |
message | 错误消息 | string | 否 |
返回参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
messageList | 消息列表 | List<object> | 是 |
返回参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
id | Id | string | 是 |
username | 用户名 | string | 是 |
avatar | 头像(文件Id) | string | 否 |
sex | 性别 0-未知 1-女 2-男 | int | 是 |
userId | 用户Id | int | 是 |
role | 角色 1-普通成员 2-管理员 3-群主 | int | 是 |
status | 状态 1-正常 2-已踢出 | int | 是 |
接口示例
参数示例
json
{
"conversationId" : "123456"
}
json
{
"code": 1,
"message": "操作成功",
"requestId": null,
"data": [
{
"id": "d2d4caf8254d4fda90812c804bd64c7f",
"username": "用户1",
"avatar": null,
"sex": 0,
"customerId": "05dcc4a5-0dd5-45b7-bbfe-9b363380a1e0",
"outId": "123",
"role": 2,
"status": 0
},
{
"id": "ff4c4439a1f44eec9ce6317dd04d5b30",
"username": "用户2",
"avatar": null,
"sex": 1,
"customerId": "05dcc4a5-0dd5-45b7-bbfe-9b363380a1e0",
"outId": "456",
"role": 1,
"status": 0
}
],
"success": true
}