-
Notifications
You must be signed in to change notification settings - Fork 40
接口文档
wuno-hong edited this page Dec 15, 2022
·
17 revisions
所有接口返回统一使用如下格式,result 是最终的业务结果
{
"code": "8000",
"msg": "",
"success": true,
"result": {},
"tid": "",
"ext": {}
}POST https://xxx/sona/room/create HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomTitle | String | 是 | 房间名称 |
| productCode | String | 是 | 产品码 |
| password | String | 否 | 房间密码 |
| uid | String | 是 | 房主uid |
| extMap | Map | 否 | 扩展信息 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"serialVersionUID": 0,
"module": "",
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0,
"imSendType": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"pullStreamInfoList": [
{
"desc": "",
"streamId": "",
"supplier": "",
"pullUrls": [
{
"streamId": "",
"pullUrl": "",
"definition": "",
"definitionId": 0,
"protocol": "",
"isDefault": false
}
]
}
],
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"playerType": 0,
"bitrate": 0
}
},
"roomId": "",
"ownerUid": "",
"guestUid": "",
"addr": "",
"nickname": "",
"extra": {}
}POST https://xxx/sona/room/enter HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | String | 是 | 房间Id |
| password | String | 否 | 房间密码 |
| uid | String | 是 | 用户uid |
| extMap | Map | 否 | 扩展信息 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"module": "",
"imSendType": 0,
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
},
"roomId": 0,
"ownerUid": 0,
"guestUid": 0,
"nickname": "",
"extra": {}
}POST https://xxx/sona/room/leave HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"result": false
}POST https://xxx/sona/room/open HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"module": "",
"imSendType": 0,
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
},
"roomId": 0,
"ownerUid": 0,
"guestUid": 0,
"nickname": "",
"extra": {}
}POST https://xxx/sona/room/close HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"result": false
}POST https://xxx/sona/room/kick HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
返回说明
{
"result": false
}POST https://xxx/sona/room/mute HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
| minute | int | 是 | 禁言时间 |
返回说明
{
"result": false
}POST https://xxx/sona/mute/cancel HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
| minute | int | 是 | 禁言时间 |
返回说明
{
"result": false
}POST https://xxx/sona/room/block HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
| reason | String | 是 | 拉黑原因 |
返回说明
{
"result": false
}POST https://xxx/sona/room/block/cancel HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
| reason | String | 是 | 取消拉黑原因 |
返回说明
{
"result": false
}POST https://xxx/sona/room/admin/set HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
返回说明
{
"result": false
}POST https://xxx/sona/room/admin/cancel HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| targetUid | String | 是 | 被操作用户 |
返回说明
{
"result": false
}POST https://xxx/sona/room/password/update HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 操作人 |
| oldPassword | String | 是 | 原密码 |
| newPassword | String | 是 | 新密码 |
返回说明
{
"result": false
}POST https://xxx/sona/room/member/count HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"result": 0
}POST https://xxx/sona/room/member/list HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| anchor | String | 是 | 分页锚点 |
| limit | int | 是 | 分页数量 |
返回说明
{
"count": 0,
"end": false,
"list": [
{
"uid": "",
"role": 0
}
],
"anchor": "",
"emptyMsg": ""
}POST https://xxx/sona/stream/gen/userSig HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
返回说明
{
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
}POST https://xxx/sona/stream/mute HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| targetUids | List | 是 | 静音用户 |
返回说明
{
"result": false
}POST https://xxx/sona/stream/mute/cancel HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| targetUids | List | 是 | 静音用户 |
返回说明
{
"result": false
}POST https://xxx/sona/stream/sync/config HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"roomId": "",
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
}POST https://xxx/sona/stream/mixed/mv HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
| mixStatus | int | 是 | 1- 开始混流mv 2- 停止混流mv |
| width | int | 是 | |
| height | int | 是 |
返回说明
{
"result": false
}POST https://xxx/sona/message/query HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
| anchor | String | 是 | 分页锚点 |
| limit | int | 是 | 分页数量 |
返回说明
{
"count": 0,
"end": false,
"list": [
{
"uid": "",
"roomId": "",
"sendTime": 0,
"content": "",
"productCode": "",
"messageId": ""
}
],
"anchor": "",
"emptyMsg": ""
}POST https://xxx/sona/message/send HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
| priority | int | 是 | 消息优先级(1、2、3、4) |
| content | String | 是 | 消息内容(json格式) |
| msgFormat | int | 是 | 消息格式 100:业务 101:文本 102:图片 103:表情 104:语音 105:视频 106:ack |
| messageId | String | 否 | 消息id |
| needToSave | boolean | 否 | 是否需要保存 |
| msgType | String | 是 | 消息业务类型 |
返回说明
{
"result": false
}POST https://xxx/sona/report/mercury HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| sendTime | long | 是 | 发送时间 |
| common | String | 否 | |
| desc | String | 否 | |
| details | String | 否 | |
| ip | String | 否 | |
| model | String | 否 | |
| network | String | 否 | |
| osVer | String | 否 | |
| platform | String | 否 | |
| type | String | 否 | |
| uid | String | 否 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#createRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomTitle | String | 是 | 房间名称 |
| productCode | String | 是 | 产品码 |
| password | String | 否 | 房间密码 |
| uid | String | 是 | 房主uid |
| extMap | Map | 否 | 扩展信息 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"serialVersionUID": 0,
"module": "",
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0,
"imSendType": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"pullStreamInfoList": [
{
"desc": "",
"streamId": "",
"supplier": "",
"pullUrls": [
{
"streamId": "",
"pullUrl": "",
"definition": "",
"definitionId": 0,
"protocol": "",
"isDefault": false
}
]
}
],
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"playerType": 0,
"bitrate": 0
}
},
"roomId": "",
"ownerUid": "",
"guestUid": "",
"addr": "",
"nickname": "",
"extra": {}
}cn.bixin.sona.api.room.SonaRoomRemoteService#enterRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | String | 是 | 房间Id |
| password | String | 否 | 房间密码 |
| uid | String | 是 | 用户uid |
| userTypeEnum | UserTypeEnum | 否 | 普通用户或vip用户 |
| extMap | Map | 否 | 扩展信息 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"module": "",
"imSendType": 0,
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
},
"roomId": 0,
"ownerUid": 0,
"guestUid": 0,
"nickname": "",
"extra": {}
}cn.bixin.sona.api.room.SonaRoomRemoteService#leaveRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#openRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"productConfig": {
"productCode": "",
"productCodeAlias": "",
"imConfig": {
"module": "",
"imSendType": 0,
"arrivalMessageSwitch": false,
"clientQueueSize": 0,
"messageExpireTime": 0
},
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
},
"roomId": 0,
"ownerUid": 0,
"guestUid": 0,
"nickname": "",
"extra": {}
}cn.bixin.sona.api.room.SonaRoomRemoteService#closeRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户uid, 游客模式传0 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#kickUser HTTP/1.1
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#muteUser Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| minutes | int | 是 | 禁言时长 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#cancelMuteUser Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| minutes | int | 是 | 禁言时长 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#blockUser Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#cancelBlockUser Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#setAdmin Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#removeAdmin Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| targetUid | long | 是 | 被操作用户 |
| operate | int | 是 | 1:设置 0:取消 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#updatePassword Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| operatorUid | long | 是 | 操作人 |
| oldPassword | String | 是 | 原密码 |
| newPassword | String | 是 | 新密码 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#updateChatroomUserScore Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | long | 是 | 用户Id |
| score | int | 是 | 分数 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomRemoteService#logReport Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| code | int | 是 | 代码 |
| data | long | 是 | 上报数据 |
| uid | long | 是 | 用户Id |
| appId | long | 是 | 应用Id |
| version | long | 是 | 版本 |
| productId | long | 是 | 产品Id |
| osName | long | 是 | 平台标识 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"roomId": 0,
"createTime": "2022年12月14日 14:10:50",
"name": "",
"password": "",
"status": 0,
"uid": 0,
"productCode": "",
"ext": {}
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getRoomBatch Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomIds | List | 是 | 房间Ids |
返回说明
{
"0" :
{
"roomId": 0,
"createTime": "2022年12月14日 14:12:26",
"name": "",
"password": "",
"status": 0,
"uid": 0,
"productCode": "",
"ext": {}
}
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getRoomMemberCount Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"result": 0
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#batchGetRoomMemberCount Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomIds | List | 是 | 房间Ids |
返回说明
{
"0" :
{
"result": 0
}
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getRoomMemberList Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| anchor | String | 是 | 分页锚点 |
| limit | int | 是 | 分页数量 |
返回说明
{
"count": 0,
"end": false,
"list": [
{
"uid": "",
"role": 0
}
],
"anchor": "",
"emptyMsg": ""
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#isUserInRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uids | List | 是 | 用户Ids |
返回说明
{
"0" : false
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getRoomConfig Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"roomId": 0,
"productCode": "",
"imModule": "",
"imSendType": 0,
"streamSupplier": "",
"type": "",
"pullMode": "",
"pushMode": "",
"enterNotifySwitch": false,
"checkAdmin": false,
"needReplay": false,
"clientType": 0,
"bitrate": 0
}cn.bixin.sona.api.room.SonaRoomQueryRemoteService#getOnlineRoomList Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| anchor | String | 是 | 锚点 |
| limit | int | 是 | 限制数 |
返回说明
{
"count": 0,
"end": false,
"list": [
{
"roomId": 0,
"createTime": "2022年12月14日 14:24:56",
"name": "",
"password": "",
"status": 0,
"uid": 0,
"productCode": "",
"ext": {}
}
],
"anchor": "",
"emptyMsg": ""
}cn.bixin.sona.api.room.StreamRemoteService#initStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | long | 是 | 用户Id |
返回说明
{
"result": 0
}cn.bixin.sona.api.room.StreamRemoteService#getRoomStreamUrl Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"result": ""
}cn.bixin.sona.api.room.StreamRemoteService#getRoomStreamUrlBatch Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomIds | List | 是 | 房间Ids |
返回说明
{
"0" : ""
}cn.bixin.sona.api.room.StreamRemoteService#muteStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| targetUids | List | 是 | 静音用户 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#cancelMuteStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| targetUids | List | 是 | 静音用户 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#muteRoomStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#addStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| streamId | String | 是 | 流Id |
| uid | long | 是 | 用户Id |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#closeStream Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| streamId | String | 是 | 流Id |
| uid | long | 是 | 用户Id |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#zegoReMix Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"result": false
}cn.bixin.sona.api.room.StreamRemoteService#genUserSign Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
返回说明
{
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
}cn.bixin.sona.api.room.StreamRemoteService#syncRoomConfigByRoomId Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
返回说明
{
"roomId": "",
"streamConfig": {
"supplier": "",
"type": "",
"pushMode": "",
"pullMode": "",
"streamList": [
""
],
"streamUrl": "",
"streamId": "",
"audioToken": "",
"streamRoomId": {},
"switchSpeaker": "",
"appInfo": {
"appId": 0,
"appSign": "",
"token": "",
"appID": ""
},
"bitrate": 0
}
}cn.bixin.sona.api.room.StreamRemoteService#mixedMV Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| uid | String | 是 | 用户id |
| mixStatus | int | 是 | 1- 开始混流mv 2- 停止混流mv |
| width | int | 是 | |
| height | int | 是 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaStreamCallbackRemoteService#handleCreateStreamCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| streamId | String | 是 | 流Id |
| roomId | long | 是 | 房间Id |
| uid | long | 是 | 用户Id |
| sdkAppId | String | 是 | |
| appId | int | 是 | |
| source | int | 是 | 1:zego 2:tecent |
| rtmpUrls | List | 是 | |
| hlsUrls | List | 是 | |
| hdlUrls | List | 是 | |
| picUrls | List | 是 | |
| createTime | Date | 是 | 创建时间 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaStreamCallbackRemoteService#handleCloseStreamCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| sdkAppId | String | 是 | |
| streamId | String | 是 | 流id |
| bizRoomId | String | 是 | biz房间id |
| roomId | String | 是 | 房间id |
| closeType | int | 是 | 关闭类型 |
| errMsg | String | 是 | 错误信息 |
| source | int | 是 | 1:zego 2:tecent |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaStreamCallbackRemoteService#handleCreateReplayCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| sdkAppId | String | 是 | |
| streamId | String | 是 | 流id |
| replayUrl | String | 是 | 录像地址 |
| beginTime | Date | 是 | 开始时间 |
| endTime | Date | 是 | 结束时间 |
| source | int | 是 | 1:zego 2:tecent |
| extraParams | Map<String, Object> | 是 | 额外信息 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaStreamCallbackRemoteService#handleMixStreamStartCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| streamId | String | 是 | 流id |
| bizRoomId | String | 是 | biz房间id |
| source | int | 是 | 1:zego 2:tecent |
| rtmpUrls | List | 是 | |
| hlsUrls | List | 是 | |
| hdlUrls | List | 是 | |
| picUrls | List | 是 | |
| createTime | Date | 是 | 创建时间 |
| inputStreamList | List | 是 | 输入流列表 |
| isMix | boolean | 是 | 是否混流 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.SonaStreamCallbackRemoteService#handleMixStreamEndCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| streamId | String | 是 | 流id |
| bizRoomId | String | 是 | biz房间id |
| mixUrl | String | 是 | 混流地址 |
| source | int | 是 | 1:zego 2:tecent |
| createTime | Date | 是 | 创建时间 |
| isMix | boolean | 是 | 是否混流 |
返回说明
{
"result": false
}cn.bixin.sona.api.room.HotSwitchRemoteService#switchAudioSupplierRoom Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | long | 是 | 房间Id |
| mixed | int | 是 | 流类型 |
返回说明
{
"result": false
}cn.bixin.sona.api.im.MessageCallbackService#sendChatroomMessage Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | Long | 是 | 房间id |
| uid | Long | 是 | 用户id |
| priority | int | 否 | 消息优先级 |
| content | String | 否 | 消息内容 |
| msgFormat | int | 否 | 消息类型 |
| messageId | String | 否 | 消息id |
| needToSave | boolean | 否 | 是否需要保存 |
| msgType | String | 否 | 业务消息类型 |
返回说明
{
"result": false
}cn.bixin.sona.api.im.callback.MessageCallbackRemoteService#checkMessageCallback Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | Long | 是 | 房间id |
| uid | Long | 是 | 用户id |
| priority | int | 否 | 消息优先级 |
| content | String | 否 | 消息内容 |
| msgFormat | int | 否 | 消息类型 |
| messageId | String | 否 | 消息id |
| needToSave | boolean | 否 | 是否需要保存 |
| msgType | String | 否 | 业务消息类型 |
返回说明
{
"roomId": 0,
"uid": 0,
"priority": 0,
"content": "",
"msgFormat": 0,
"messageId": "",
"needToSave": false,
"msgType": ""
}cn.bixin.sona.api.im.MessageQueryService#queryMessageInfo Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| roomId | Long | 是 | 房间id |
| uid | Long | 否 | 消息发送方uid |
| reserved | boolean | 否 | 是否倒叙查询 |
| anchor | String | 否 | 分页游标 |
| limit | int | 否 | 分页大小 |
返回说明
{
"count": 0,
"end": false,
"list": [
{
"uid": 0,
"roomId": 0,
"sendTime": 0,
"content": "",
"productCode": "",
"messageId": ""
}
],
"anchor": "",
"emptyMsg": ""
}cn.bixin.sona.api.im.RouterRoomMessageService#sendChatRoomMessage Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| roomId | Long | 是 | 房间id |
返回说明
{
"result": ""
}cn.bixin.sona.api.im.RouterRoomMessageService#sendGroupMessage Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| groupId | Long | 是 | 群组id |
返回说明
{
"result": ""
}cn.bixin.sona.api.im.RouterRoomMessageService#sendChatRoomMessages Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| roomId | Long | 是 | 房间id |
返回说明
{
"result": false
}cn.bixin.sona.api.im.RouterRoomMessageService#sendGroupMessages Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| groupId | Long | 是 | 群组id |
返回说明
{
"result": false
}cn.bixin.sona.api.im.RouterRoomMessageService#sendChatRoomMessageToUids Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| roomId | Long | 是 | 房间id |
| uids | List | 是 | 接收者uid |
返回说明
{
"result": ""
}cn.bixin.sona.api.im.RouterRoomMessageService#boardCastChatRoomMessage Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
返回说明
{
"result": ""
}cn.bixin.sona.api.im.RouterRoomMessageService#sendChatRoomMessage Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | Long | 是 | 发送者uid |
| content | String | 是 | 消息内容 |
| sendTime | Long | 是 | 发送时间 |
| messageId | String | 是 | 消息id |
| productCode | String | 是 | 业务类型 |
| needToSave | boolean | 是 | 是否要保存消息 |
| roomIds | List | 是 | 房间id |
返回说明
{
"result": ""
}cn.bixin.sona.api.report.MercuryReportRemoteService#report Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| sendTime | long | 是 | 发送时间 |
| common | String | 否 | |
| desc | String | 否 | |
| details | String | 否 | |
| ip | String | 否 | |
| model | String | 否 | |
| network | String | 否 | |
| osVer | String | 否 | |
| platform | String | 否 | |
| type | String | 否 | |
| uid | String | 否 |
返回说明
{
"result": false
}cn.bixin.sona.session.api.UserSessionRemoteService#getCurrentChannel Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | long | 是 | 用户id |
返回说明
{
"result": [""]
}cn.bixin.sona.session.api.UserSessionRemoteService#getCurrentChannels Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | List | 是 | 用户id |
返回说明
{
"0": [""]
}cn.bixin.sona.session.api.UserSessionRemoteService#getOnlineState Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | long | 是 |
返回说明
{
"result": false
}cn.bixin.sona.session.api.UserSessionRemoteService#getOnlineStates Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uids | List | 否 | 用户id |
返回说明
{
"0": false
}cn.bixin.sona.session.api.UserSessionRemoteService#getChatRoomOnlineStatel Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | long | 是 | 用户id |
返回说明
{
"result": [""]
}cn.bixin.sona.session.api.UserSessionRemoteService#getChatRoomOnlineStates Dubbo/2.7.8
Content-Type: application/json; charset=utf-8
参数说明
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| uid | List | 是 | 用户id |
返回说明
{
"0": [""]
}