房间管理

创建VR/AR房间

请求地址: https://app.3dcat.live/api/3dcat/application/room

请求方法: post

请求参数:

字段名类型是否必填说明
passwordString房间密码(如果房间是私有密码必传)
desString房间描述
typeint房间类型 1:VR 2:AR
nameString房间名称
isSecretInteger0公开房间 1私密房间

返回结果:

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": null,
    "serverTime": 1638839659119,
    "requestId": "8e1d1a6bb19785fd"
}

更新房间

请求地址:https://app.3dcat.live/api/3dcat/application/room

请求方法: put

请求参数:

字段名类型是否必填说明
idLong房间id

返回结果:

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": null,
    "serverTime": 1638786940848,
    "requestId": "8d166d19b159d60a"
}

查询房间列表

请求地址:https://app.3dcat.live/api/3dcat/application/room

请求方法: get

请求参数:

字段名类型是否必填说明
currentint当前页(从1开始)
sizeint一页数量
roomNameint房间名称(模糊查询)

返回结果:

字段名类型说明
currentint当前页
sizeint一页数量
totalint查询总数
recordsList房间列表

房间

字段名类型说明
idLong房间Id
desString房间描述
nameString房间名称
isSecretint0公开房间 1私密房间
typeint1 VR 2 AR
userIdLong用户id
createTimeDate创建时间
updateTimeDate更新时间

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": {
        "records": [
            {
                "id": 1219,
                "des": "",
                "name": "3dcat12.6",
                "isSecret": 0,
                "type": 1,
                "userId": 3681,
                "createTime": "2021-12-06T18:35:40.844",
                "updateTime": "2021-12-07T09:33:57.258"
            },
            {
                "id": 1214,
                "des": "",
                "name": "431241",
                "isSecret": 1,
                "type": 1,
                "userId": 3681,
                "createTime": "2021-11-15T11:50:08.528",
                "updateTime": "2021-12-06T18:12:08.209"
            }
        ],
        "total": 2,
        "size": 10,
        "current": 1,
        "orders": [],
        "searchCount": true,
        "pages": 1
    },
    "serverTime": 1638841607599,
    "requestId": "9dad43691742bd15"
}

删除房间

请求地址: https://app.3dcat.live/api/3dcat/application/room/{id}

请求方法: delete

请求参数:

返回结果:

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": null,
    "serverTime": 1638780517915,
    "requestId": "afb160eb550df07b"
}

获取房间列表(不分页)

请求地址: https://app.3dcat.live/api/3dcat/application/room/all

请求方法: get

请求参数:

返回结果:

字段名类型说明

房间

字段名类型说明
idLong房间Id
desString房间描述
nameString房间名称
isSecretint0公开房间 1私密房间
typeint1 VR 2 AR
userIdLong用户id
createTimeDate创建时间
updateTimeDate更新时间

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": [
        {
            "id": 1214,
            "des": "",
            "name": "431241",
            "isSecret": 1,
            "type": 1,
            "userId": 3681,
            "createTime": "2021-11-15T11:50:08.528",
            "updateTime": "2021-12-06T18:12:08.209"
        },
        {
            "id": 1219,
            "des": "",
            "name": "3dcat12.6",
            "isSecret": 0,
            "type": 1,
            "userId": 3681,
            "createTime": "2021-12-06T18:35:40.844",
            "updateTime": "2021-12-07T09:33:57.258"
        }
    ],
    "serverTime": 1638841651212,
    "requestId": "af1ae89cb82bfa6e"
}

获取房间详情

请求地址: https://app.3dcat.live/api/3dcat/application/room/id

请求方法: get

请求参数:

字段名类型是否必填说明
idLong房间类型

返回结果:

字段名类型说明
idLong房间Id
passwordString私有密码
desString房间描述
nameString房间名称
isSecretint0公开房间 1私密房间
userIdLong用户id
isDeleteInteger是否删除
createTimeDate创建时间
updateTimeDate更新时间
typeint1 VR 2 AR

返回内容示例:

{
    "version": "1.0.0",
    "result": true,
    "message": "success",
    "code": 200,
    "data": {
        "id": 1219,
        "password": null,
        "des": "",
        "name": "3dcat12.6",
        "isSecret": 0,
        "userId": 3681,
        "isDelete": 0,
        "createTime": "2021-12-06T18:35:40.844",
        "updateTime": "2021-12-07T09:33:57.258",
        "type": 1
    },
    "serverTime": 1638841811546,
    "requestId": "f1f504f9afba03a3"
}
业务咨询:400-8037-298