adminLive - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/admin/live
【注】直播live实体,为一个房屋总体直播状况的聚合根,liveDetail是每天的直播详情信息。
字段说明
字段分为显示和保存两部分。
保存字段会有一些关联实体的id,显示字段会把一些关联实体的内容扁平化显示。
显示字段
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:访问地址
}
]
}
传参字段
id:id
userId:用户id
name:直播名称
village:小区名称
area:房屋面积
house:户型,如二居室 string
startDate:开工日期yyyy-MM-dd
shouldShow:是否对公众展示boolean
status:施工阶段,枚举字段:进行中,已交房,验收中;
mainPicFile:直播主图
返回示例
{
"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"
}
分页获取直播详情
url:http://101.200.229.135:8080/api/admin/live/{id}/details
method:GET
参数:
id:路径参数,为直播的id
page:页号
size:页码