go-common/app/tool/bmproto/protoc-gen-bm/example/demo.foo.md
2019-04-22 18:49:16 +08:00

4.9 KiB
Raw Blame History

/xlive/demo/v1/foo/uname_by_uid_custom_route

根据uid得到uname

这是详细说明

需要登录

方法GET

请求参数

参数名 必选 类型 描述
uid integer 用户uid aaa

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  用户名
        "uname": "hello",
        //  idshaha
        "ids": [
            343242
        ],
        "list": [
            {
                "hello": "\"withquote",
                "world": ""
            }
        ],
        "alist": {
            "hello": "\"withquote",
            "world": ""
        },
        "amap": {
            "mapKey": {
                "hello": "\"withquote",
                "world": ""
            }
        }
    }
}

/xlive/live-demo/v1/foo/get_info

获取房间信息

方法GET

请求参数

参数名 必选 类型 描述
room_id integer 房间id `mock:"123"
many_ids 多个integer

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  房间id 注释貌似只有放在前面才能被识别,放到字段声明后面是没用的
        "roomid": 0,
        //  用户名
        "uname": "",
        //  开播时间
        "live_time": "",
        "amap": {
            "1": ""
        },
        "rate": 6.02214129e23,
        //  用户mid
        "mid": 0
    }
}

/xlive/live-demo/v1/foo/uname_by_uid3

根据uid得到uname v3

方法GET

请求参数

参数名 必选 类型 描述
uid integer 用户uid aaa

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  用户名
        "uname": "hello",
        //  idshaha
        "ids": [
            343242
        ],
        "list": [
            {
                "hello": "\"withquote",
                "world": ""
            }
        ],
        "alist": {
            "hello": "\"withquote",
            "world": ""
        },
        "amap": {
            "mapKey": {
                "hello": "\"withquote",
                "world": ""
            }
        }
    }
}

/xlive/internal/live-demo/v1/foo/uname_by_uid4

test comment

方法GET

请求参数

参数名 必选 类型 描述
uid integer 用户uid aaa

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  用户名
        "uname": "hello",
        //  idshaha
        "ids": [
            343242
        ],
        "list": [
            {
                "hello": "\"withquote",
                "world": ""
            }
        ],
        "alist": {
            "hello": "\"withquote",
            "world": ""
        },
        "amap": {
            "mapKey": {
                "hello": "\"withquote",
                "world": ""
            }
        }
    }
}

/xlive/live-demo/v1/foo/get_dynamic

无标题

方法GET

请求参数

参数名 必选 类型 描述
uid integer 用户uid aaa

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  用户名
        "uname": "hello",
        //  idshaha
        "ids": [
            343242
        ],
        "list": [
            {
                "hello": "\"withquote",
                "world": ""
            }
        ],
        "alist": {
            "hello": "\"withquote",
            "world": ""
        },
        "amap": {
            "mapKey": {
                "hello": "\"withquote",
                "world": ""
            }
        }
    }
}

/xlive/live-demo/v1/foo/nointerface

无标题

方法GET

请求参数

参数名 必选 类型 描述
uid integer 用户uid aaa

响应

{
    "code": 0,
    "message": "ok",
    "data": {
        //  用户名
        "uname": "hello",
        //  idshaha
        "ids": [
            343242
        ],
        "list": [
            {
                "hello": "\"withquote",
                "world": ""
            }
        ],
        "alist": {
            "hello": "\"withquote",
            "world": ""
        },
        "amap": {
            "mapKey": {
                "hello": "\"withquote",
                "world": ""
            }
        }
    }
}