Page History

Stepranking

Last edited by 徐近程

返回

家庭步数排行榜


URL: http://apiwjjtest.cnlive.com/Daren/family/stepRanking.action


请求方式: HTTP POST


请求参数说明:

参数名 参数类型 必选 参数说明
sid String true 用户sid
groupId String true 群组id
rankingTime String true 排行日期(年月日2020-08-01)
pageNo String false 页码(默认1)
pageSize String false 每页数量(默认10)

返回格式: JSON


返回格式样例:

{
    "data": {
        "cumulativeStep": "48.1w",  //家庭累计步数
        "dayAllStep": "171741",   //当日家庭总步数
        "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0805/1596632814420_small.jpg",  //头像
        "familyGroupStepRankingList": {
            "hasNext": false,
            "list": [
                {
                    "fabulousNum": "0",   //点赞数量
                    "fabulousState": "2",   //点赞状态:1-点赞 2-没有点赞
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0718/1595030972860_small.jpg",  //头像
                    "nick": "506",   //昵称
                    "sid": "395098",   //用户sid
                    "steps": "56231"   //用户步数
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0823/1598158940513_small.jpg",
                    "nick": "508测试",
                    "sid": "395369",
                    "steps": "23568"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0919/1600527036330_small.jpg",
                    "nick": "507",
                    "sid": "395233",
                    "steps": "23568"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0805/1596592110380_small.jpg",
                    "nick": "ZHCH",
                    "sid": "10499273",
                    "steps": "23568"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0524/1590322857311_small.jpg",
                    "nick": "505",
                    "sid": "395006",
                    "steps": "12589"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2019/0727/1564195894594_small.jpg",
                    "nick": "陕西省-测试-20100766",
                    "sid": "354331",
                    "steps": "12345"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0508/1588908821814_small.jpg",
                    "nick": "北京市-啦啦-20100180",
                    "sid": "10537318",
                    "steps": "6989"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0813/1597309548615_small.jpg",
                    "nick": "当前时间newDate",
                    "sid": "10513196",
                    "steps": "6987"
                },
                {
                    "fabulousNum": "0",
                    "fabulousState": "2",
                    "face": "http://yweb0.cnliveimg.com/images/headImg/2020/0805/1596632814420_small.jpg",
                    "nick": "北京市-道健-20200721",
                    "sid": "398596",
                    "steps": "5896"
                }
            ],
            "pageNumber": 1,
            "pageSize": 10,
            "startIndex": 0,
            "totalPage": 1,
            "totalRecord": 9
        },
        "nick": "北京市-道健-20200721",  //昵称
        "ranking": "7",    //名次
        "sid": "398596",   //用户sid
        "userReceivedNum": "0",  //点赞数量
        "userStep": "5896"    //用户当日步数
    },
    "errorCode": "0",
    "errorMessage": "成功"
}

错误码:
{
    "data": {},
    "errorCode": "403",
    "errorMessage": "缺少必要参数"
}

{
    "data": {},
    "errorCode": "500",
    "errorMessage": "服务器异常"
}