myLives - TimYi/FengHuang GitHub Wiki

请求URL

http://101.200.229.135:8080/api/user/lives

请求方式

GET  

请求参数

token:用户凭据

返回参数

id:id
user:用户信息
name:直播名称
village:小区名称
area:房屋面积
house:户型,如二居室 string
startDate:开工日期
shouldShow:是否对公众展示
status:施工阶段,枚举字段:进行中,已交房,验收中;
mainPic:主图,媒体类型 {
    id:id
    url:访问地址
}
lives:每日直播详情,为数组。 {
    id:id
    day:第几天
    date:日期
    title:当日标题
    tips:温馨提示
    workers:工人 {
        name:姓名
        type:工种,字典类型——worker,前端根据工种自己排布工人显示方式。
    }
    pics:图片组[
        { 
            id:id
            url:访问地址
        }
    ]
}

返回示例

{
"result": {
    "totalCount": 1,
    "totalPages": 1,
    "page": 1,
    "size": 8,
    "result": [
        {
            "id": "404040e64dff43eb014dff43fada0000",
            "user": {
                "id": "8aac48364dd68c74014dd6c031f10000",
                "username": "chxy020",
                "verified": true,
                "cnname": "ToT",
                "realName": "陈宣宇",
                "ename": "chenxy",
                "sex": {
                    "id": "404040e64dd26ab5014dd26ac64e0014",
                    "name": "女",
                    "attr": null,
                    "attr2": null,
                    "type": "sex"
                },
                "mobile": "15810880522",
                "intro": "反反复复",
                "email": "",
                "qqnum": null,
                "qqid": null,
                "weixinnum": null,
                "weixinid": null,
                "birthDay": null,
                "bloodType": {
                    "id": "404040e64dd26ab5014dd26ac3bf0004",
                    "name": "AB",
                    "attr": null,
                    "attr2": null,
                    "type": "blood"
                },
                "constellation": {
                    "id": "404040e64dd26ab5014dd26ac5e10011",
                    "name": "摩羯座",
                    "attr": null,
                    "attr2": null,
                    "type": "constellation"
                },
                "avatar": null,
                "trade": "IT",
                "address": "beijing123",
                "expVal": 0,
                "integra": 0,
                "regTime": "2015-06-09 13:17:09",
                "regIp": "211.103.234.234",
                "loginTime": "2015-06-16 23:15:43",
                "loginip": "175.25.169.70",
                "weiboid": null,
                "infoComplete": true
            },
            "name": "test",
            "village": null,
            "area": null,
            "house": null,
            "startDate": null,
            "shouldShow": false,
            "lives": [
                {
                    "id": "8aac48364dff72ef014dff732dad0000",
                    "day": 1,
                    "date": null,
                    "title": "测试",
                    "tips": null,
                    "workers": [],
                    "pics": []
                }
            ],
            "status": null
        }
    ]
},
"status": "OK"
}