api.daoAnchor.md 18 KB

/live.daoanchor.v1.DaoAnchor/FetchRoomByIDs

FetchRoomByIDs 查询房间信息

方法:GET

请求参数

参数名 必选 类型 描述
room_ids 多个integer
uids 多个integer
fields 多个string
default_fields integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "room_data_set": {
            "1": {
                "uid": 0,
                "room_id": 0,
                "short_id": 0,
                "title": "",
                "cover": "",
                "tags": "",
                "background": "",
                "description": "",
                "live_status": 0,
                "live_start_time": 0,
                "live_screen_type": 0,
                "live_mark": 0,
                "lock_status": 0,
                "lock_time": 0,
                "hidden_status": 0,
                "hidden_time": 0,
                "area_id": 0,
                "area_name": "",
                "parent_area_id": 0,
                "parent_area_name": "",
                "keyframe": "",
                "popularity_count": 0,
                "tag_list": [
                    {
                        "tag_id": 0,
                        "tag_sub_id": 0,
                        "tag_value": 0,
                        "tag_ext": "",
                        "tag_expire_at": 0
                    }
                ],
                "anchor_profile_type": 0,
                "anchor_level": {
                    //  当前等级
                    "level": 0,
                    //  当前等级颜色
                    "color": 0,
                    //  当前积分
                    "score": 0,
                    //  当前等级最小积分
                    "left": 0,
                    //  当前等级最大积分
                    "right": 0,
                    //  最大等级
                    "max_level": 0
                },
                "anchor_round_switch": 0,
                "anchor_round_status": 0,
                "anchor_record_switch": 0,
                "anchor_record_status": 0,
                "anchor_san": 0,
                //  0默认 1摄像头直播 2录屏直播 3语音直播
                "live_type": 0
            }
        }
    }
}

/live.daoanchor.v1.DaoAnchor/RoomOnlineList

RoomOnlineList 在线房间列表

方法:GET

请求参数

参数名 必选 类型 描述
filter string
sort string
page integer
page_size integer
fields 多个string

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "room_data_list": {
            "1": {
                "uid": 0,
                "room_id": 0,
                "short_id": 0,
                "title": "",
                "cover": "",
                "tags": "",
                "background": "",
                "description": "",
                "live_status": 0,
                "live_start_time": 0,
                "live_screen_type": 0,
                "live_mark": 0,
                "lock_status": 0,
                "lock_time": 0,
                "hidden_status": 0,
                "hidden_time": 0,
                "area_id": 0,
                "area_name": "",
                "parent_area_id": 0,
                "parent_area_name": "",
                "keyframe": "",
                "popularity_count": 0,
                "tag_list": [
                    {
                        "tag_id": 0,
                        "tag_sub_id": 0,
                        "tag_value": 0,
                        "tag_ext": "",
                        "tag_expire_at": 0
                    }
                ],
                "anchor_profile_type": 0,
                "anchor_level": {
                    //  当前等级
                    "level": 0,
                    //  当前等级颜色
                    "color": 0,
                    //  当前积分
                    "score": 0,
                    //  当前等级最小积分
                    "left": 0,
                    //  当前等级最大积分
                    "right": 0,
                    //  最大等级
                    "max_level": 0
                },
                "anchor_round_switch": 0,
                "anchor_round_status": 0,
                "anchor_record_switch": 0,
                "anchor_record_status": 0,
                "anchor_san": 0,
                //  0默认 1摄像头直播 2录屏直播 3语音直播
                "live_type": 0
            }
        }
    }
}

/live.daoanchor.v1.DaoAnchor/RoomOnlineListByArea

RoomOnlineListByArea 分区在线房间列表(只返回room_id列表,不传分区,默认查找所有)

方法:GET

请求参数

参数名 必选 类型 描述
area_ids 多个integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "room_ids": [
            0
        ]
    }
}

/live.daoanchor.v1.DaoAnchor/RoomOnlineListByAttrs

RoomOnlineListByAttrs 在线房间维度信息(不传attrs,不查询attr)

方法:GET

请求参数

{
    "attrs": [
        {
            "attr_id": 0,
            "attr_sub_id": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "attrs": {
            "1": {
                "uid": 0,
                "room_id": 0,
                "area_id": 0,
                "parent_area_id": 0,
                "tag_list": [
                    {
                        "tag_id": 0,
                        "tag_sub_id": 0,
                        "tag_value": 0,
                        "tag_ext": "",
                        "tag_expire_at": 0
                    }
                ],
                "attr_list": [
                    {
                        "room_id": 0,
                        "attr_id": 0,
                        "attr_sub_id": 0,
                        "attr_value": 0
                    }
                ],
                "popularity_count": 0,
                "anchor_profile_type": 0
            }
        }
    }
}

/live.daoanchor.v1.DaoAnchor/RoomCreate

RoomCreate 房间创建

方法:GET

请求参数

参数名 必选 类型 描述
uid integer
room_id integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "room_id": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomUpdate

RoomUpdate 房间信息更新

方法:GET

请求参数

参数名 必选 类型 描述
fields 多个string
room_id integer
title string
cover string
tags string
background string
description string
live_start_time integer
live_screen_type integer
lock_status integer
lock_time integer
hidden_time integer
area_id integer
anchor_round_switch integer
anchor_record_switch integer
live_type integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomBatchUpdate

RoomBatchUpdate 房间信息批量更新

方法:GET

请求参数

{
    "reqs": [
        {
            "fields": [
                ""
            ],
            "room_id": 0,
            "title": "",
            "cover": "",
            "tags": "",
            "background": "",
            "description": "",
            "live_start_time": 0,
            "live_screen_type": 0,
            "lock_status": 0,
            "lock_time": 0,
            "hidden_time": 0,
            "area_id": 0,
            "anchor_round_switch": 0,
            "anchor_record_switch": 0,
            "live_type": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomExtendUpdate

RoomExtendUpdate 房间扩展信息更新

方法:GET

请求参数

参数名 必选 类型 描述
fields 多个string
room_id integer
keyframe string
danmu_count integer
popularity_count integer
audience_count integer
gift_count integer
gift_gold_amount integer
gift_gold_count integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomExtendBatchUpdate

RoomExtendBatchUpdate 房间扩展信息批量更新

方法:GET

请求参数

{
    "reqs": [
        {
            "fields": [
                ""
            ],
            "room_id": 0,
            "keyframe": "",
            "danmu_count": 0,
            "popularity_count": 0,
            "audience_count": 0,
            "gift_count": 0,
            "gift_gold_amount": 0,
            "gift_gold_count": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomExtendIncre

RoomExtendIncre 房间信息增量更新

方法:GET

请求参数

参数名 必选 类型 描述
req_id string
fields 多个string
room_id integer
danmu_count integer
popularity_count integer
audience_count integer
gift_count integer
gift_gold_amount integer
gift_gold_count integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomExtendBatchIncre

RoomExtendBatchIncre 房间信息批量增量更新

方法:GET

请求参数

{
    "reqs": [
        {
            "req_id": "",
            "fields": [
                ""
            ],
            "room_id": 0,
            "danmu_count": 0,
            "popularity_count": 0,
            "audience_count": 0,
            "gift_count": 0,
            "gift_gold_amount": 0,
            "gift_gold_count": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomTagCreate

RoomTagCreate 房间Tag创建

方法:GET

请求参数

参数名 必选 类型 描述
room_id integer
tag_id integer
tag_sub_id integer
tag_value integer
tag_ext string
tag_expire_at integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomAttrCreate

RoomAttrCreate 房间Attr创建

方法:GET

请求参数

参数名 必选 类型 描述
room_id integer
attr_id integer
attr_sub_id integer
attr_value integer
attr_ext string

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/RoomAttrSetEx

RoomAttrSetEx 房间Attr更新

方法:GET

请求参数

参数名 必选 类型 描述
room_id integer
attr_id integer
attr_sub_id integer
attr_value integer
attr_ext string

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/AnchorUpdate

AnchorUpdate 主播信息更新

方法:GET

请求参数

参数名 必选 类型 描述
fields 多个string
uid integer
profile_type integer
san_score integer
round_status integer
record_status integer
exp integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/AnchorBatchUpdate

AnchorBatchUpdate 主播信息批量更新

方法:GET

请求参数

{
    "reqs": [
        {
            "fields": [
                ""
            ],
            "uid": 0,
            "profile_type": 0,
            "san_score": 0,
            "round_status": 0,
            "record_status": 0,
            "exp": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/AnchorIncre

AnchorIncre 主播信息增量更新

方法:GET

请求参数

参数名 必选 类型 描述
req_id string
fields 多个string
uid integer
san_score integer
exp integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/AnchorBatchIncre

AnchorBatchIncre 主播信息批量增量更新

方法:GET

请求参数

{
    "reqs": [
        {
            "req_id": "",
            "fields": [
                ""
            ],
            "uid": 0,
            "san_score": 0,
            "exp": 0
        }
    ]
}

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}

/live.daoanchor.v1.DaoAnchor/FetchAreas

FetchAreas 根据父分区号查询子分区

方法:GET

请求参数

参数名 必选 类型 描述
area_id integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "info": {
            "area_id": 0,
            "area_name": ""
        },
        "areas": [
            {
                "area_id": 0,
                "area_name": ""
            }
        ]
    }
}

/live.daoanchor.v1.DaoAnchor/FetchAttrByIDs

FetchAttrByIDs 批量根据房间号查询指标

方法:GET

请求参数

参数名 必选 类型 描述
room_ids 多个integer
attr_id integer
attr_sub_id integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "attrs": {
            "1": {
                "room_id": 0,
                "attr_id": 0,
                "attr_sub_id": 0,
                "attr_value": 0
            }
        }
    }
}

/live.daoanchor.v1.DaoAnchor/DeleteAttr

DeleteAttr 删除某一个指标

方法:GET

请求参数

参数名 必选 类型 描述
attr_id integer
attr_sub_id integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        "affected_rows": 0
    }
}