~~~[api]
get:/api/index/details
*int:id#说明文字
<<<
success
{
"code": 1,
"msg": "",
"time": "2017-10-21 16:06",
"data": {
"id": 16,
"news_id": 16,
"title": "他开着1亿7000万的定制版劳斯莱斯 捐款20亿 却演了一辈子的傻子",
"small_img_id": 30,
"author": "灯笼",
"view": 0,
"video_id": 0,
"cid": 1,
"likes": 1, // 点赞数量
"dislikes": 1, // 不喜欢 数量
"user_like": 1, // 点赞状态 null 没用户登录 或 没任何点击 0 用户点了喜欢 1 该用户点了不喜欢
"description": "视频简介",
"attachment": {
"id": 30,
"path": "http://kowa-news.oss-cn-hongkong.aliyuncs.com/oss/uploads/2017-11-08/TB6sjBeajw.jpg"
driver:"oss"
},
"custom": {
"id": 1,
"type": "article",
"column_id": "1"
},
"paragraph": [
{
"id": 218,
"news_id": 16,
"type": "text",
"content": "",
aid:453,
attachment:{
id: 453,
duration: "01:12" //段落里的附件时长
}
},
],
"video": {
"id": 416,
"path": "http://kowa-news.oss-cn-hongkong.aliyuncs.com/zhuanma_oss/uploads/2017-11-07/y3W84bhI5XOG5w9cyqfLtEdThnvhzP7r.mp4", //视频连接
"duration": "00:10" // 视频时长
},
}
}
<<<
error
~~~