adminLiveDetail - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/admin/liveDetail
【注】直播live实体,为一个房屋总体直播状况的聚合根,liveDetail是每天的直播详情信息。
字段说明
字段分为显示和保存两部分。
保存字段会有一些关联实体的id,显示字段会把一些关联实体的内容扁平化显示。
显示字段
id:id
day:第几天
date:日期
title:当日标题
tips:温馨提示
workers:工人 {
name:姓名
type:工种,字典类型——worker,前端根据工种自己排布工人显示方式。
}
pics:图片组[
{
id:id
url:访问地址
}
]
interactPics:微信互动图片[
{
id:id
url:访问地址
}
]
传参字段
id:id
liveId:直播id
day:第几天
date:日期
title:当日标题
tips:温馨提示
workerids:工人id数组
picFiles:图片组,新增时有效,更新时会忽略
interactPicFiles:微信互动图片组,新增时有效,更新时会忽略
返回示例
{
"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": [],
"interactPicFiles": []
}
],
"status": null
}
]
},
"status": "OK"
}
添加直播图片
url:http://101.200.229.135:8080/api/admin/liveDetail/{id}/pics
method:POST
参数:
id:路径参数,为liveDetail(每日直播详情)的id,
picFile:要上传的图片
删除直播图片
url:http://101.200.229.135:8080/api/admin/liveDetail/{id}/pic/{picId}
method:DELETE
参数:
id:路径参数,为liveDetail(每日直播详情)的id,
picId:路径参数,为要删除的图片的id
添加微信互动图片
url:http://101.200.229.135:8080/api/admin/liveDetail/{id}/interactPics
method:POST
参数:
id:路径参数,为liveDetail(每日直播详情)的id,
picFile:要上传的图片
删除微信互动图片
url:http://101.200.229.135:8080/api/admin/liveDetail/{id}/interactPic/{picId}
method:DELETE
参数:
id:路径参数,为liveDetail(每日直播详情)的id,
picId:路径参数,为要删除的图片的id