~~~[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
~~~
