推荐、球鞋栏目.md 6.54 KB

1、频道列表页接口

频道列表页接口(app.grass.columnArticleList)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid Integer 380463 0 用户id
page Integer 1 1 页码
limit Integer 1 10 每页显示条数
columnType Integer 1000 栏目类型 (推荐:1001,最新:1002,关注:1003)
lastedTime String "1548905701041" null 第一次请求或者刷新列表时不传, 接口会返回此字段,后续分页请求带上该字段值

注意,通用的头部没有列出。
请求示例 http://api-test3.dev.yohocorp.com/?app_version=6.8.8&business_line=yohobuy&method=app.grass.columnArticleList&debug=XYZ&page=1&limit=20&columnType=1003&uid=500031572

响应

code为200即为成功。 响应JSON格式如下所示:

{
  "code": 200,
  "data": {
    "lastedTime": "1548673065000",
    "list": [
      {
        "articleId": 118,    //内容id
        "articleType": 1,       //类型:1普通文章、 2 逛文章
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/01/29/13/01a6f2909ef952e93811cd2af1b49ca9f1.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "羡慕丶",    //昵称
        "authorType": 1,           //作者类型: 1 普通作者   2 平台作者  
        "authorUid": 500031572,
        "content": "第五篇",         //文字内容
        "coverImage": "http://img11.static.yhbimg.com\\grassImg/2019/01/29/11/01ac7cced962bab10b74739dc4b1d81354.png?imageView2/{mode}/w/{width}/h/{height}",  //封面图
        "favoriteCount": 0,         //收藏数
        "praiseCount": 0,         //点赞数
        "hasFavor": "N",            //用户是否已收藏
        "hasPraised": "N",          //用户是否已点赞
        "imageHeight": "1",         
        "imageWidth": "1",
        "isTop": 0,                 //是否置顶文章
        "publishTime": 1548905701041,  
        "publishTimeStr": "2019-01-31 11:35:01"  //发布时间,
        "dataType":1,
        "identityAuthStatus": "Y",   //作者是否已认证
        "sort":1                    //文章类型: 1 笔记 2 长文章 3跳转
      },
      {
            //文章类型sort 为3时, 对应的跳转url
        "actionUrl": "http://yoho-community-web.test3.ingress.dev.yohocorp.com/grass/topic/2644/奥斯特洛夫斯基?headerid=-1&toplayoutByH5=Y&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"toplayoutByH5\":\"Y\",\"headerid\":\"-1\",\"url\":\"http://yoho-community-web.test3.ingress.dev.yohocorp.com/grass/topic/2644/奥斯特洛夫斯基\"}}",
        "articleId": 141096,
        "articleType": 1,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/17/15/013f6038bd91b7736a49fc2e523a2b7777.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "伯利恒",
        "authorType": 1,
        "authorUid": 500031572,
        "content": "测试下跳转",
        "copyright": "原创",
        "coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/05/21/10/0122a22004d3e3170f7640657875b66d10.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "dataType": 1,
        "favoriteCount": 0,
        "hasFavor": "N",
        "hasPraised": "N",
        "identityAuthStatus": "Y",
        "imageHeight": "1",
        "imageWidth": "1",
        "isTop": 0,
        "praiseCount": 0,
        "publishTime": 1558404953827,
        "publishTimeStr": "2019-05-21 10:15:53",
        "skillsDesc": "",
        "sort": 3
      },
      {
        "articleId": 141094,
        "articleType": 1,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/17/15/013f6038bd91b7736a49fc2e523a2b7777.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "伯利恒",
        "authorType": 1,
        "authorUid": 500031572,
        "content": "你我继续继续跳舞",
        "copyright": "原创",
        "coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/05/20/17/01906864650332b6d0f11f23bf6d92a3b0.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "dataType": 1,
        "favoriteCount": 0,
        "hasFavor": "N",
        "hasPraised": "N",
        "identityAuthStatus": "Y",
        "imageHeight": "132",
        "imageWidth": "132",
        "isTop": 0,
        "praiseCount": 0,
        "publishTime": 1558346214589,
        "publishTimeStr": "2019-05-20 17:56:54",
        "skillsDesc": "",
        "sort": 2
      },
      {
        "articleId": 141074,
        "articleType": 1,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/09/14/012c2104fcb27ea9ba429bd3ab83917713.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "我的测试账号",
        "authorType": 1,
        "authorUid": 600033648,
        "content": "你好",
        "copyright": "原创",
        "coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/05/16/14/016b17d2525890b273a8de1ab9c72321cc.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "dataType": 1,
        "favoriteCount": 0,
        "hasFavor": "N",
        "hasPraised": "N",
        "identityAuthStatus": "N",
        "imageHeight": "1080",
        "imageWidth": "1080",
        "isTop": 0,
        "praiseCount": 0,
        "publishTime": 1557989739623,
        "publishTimeStr": "2019-05-16 14:55:39",
        "sort": 1
      },
      {
        "articleId": 141060,
        "articleType": 1,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/17/15/013f6038bd91b7736a49fc2e523a2b7777.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "伯利恒",
        "authorType": 1,
        "authorUid": 500031572,
        "content": "辣辣辣为什么这里要50个字呢,我的朋友。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。",
        "copyright": "原创",
        "coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/05/15/16/018fb901d90f8cfef860b8f658d7cfcb72.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "dataType": 1,
        "favoriteCount": 0,
        "hasFavor": "N",
        "hasPraised": "Y",
        "identityAuthStatus": "Y",
        "imageHeight": "1080",
        "imageWidth": "1080",
        "isTop": 0,
        "praiseCount": 8,
        "publishTime": 1557907911565,
        "publishTimeStr": "2019-05-15 16:11:51",
        "skillsDesc": "",
        "sort": 1
      }

    ],
    "newItemsNum": 11,  //下拉刷新时更新的内容条数,为0则提示没有新内容,不返回不需要提示
    "pageNo": 1,
    "pageSize": 3,
    "totalCount": 5,
    "totalPage": 2

  },
  "message": "success"
}