发现好货.md 5.17 KB

1、发现好货页面 文章列表接口(原详情页模式)

发现好货页面 文章列表接口(method=app.grass.findGoodsList)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid Integer 380463 0 用户id
page Integer 1 1 页码
limit Integer 1 10 每页显示条数
lastedTime String "1548905701041" null 第一次请求不传, 接口会返回此字段,后续分页请求带上该字段值

注意,通用的头部没有列出。
请求示例 http://api-test3.dev.yohocorp.com/?app_version=6.8.8&business_line=yohobuy&client_secret=02ce22feb7ea1ca0128719e8dd2c95fe&method=app.grass.findGoodsList&udid=861243048197754cd2de191342aa531&debug=XYZ&uid=500031572&client_type=android&page=1&limit=5

响应

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

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "detailList": [
      {
        "articleId": 141054,
        "articleType": 1,
        "authGroupId": 5,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/31/16/0166f1d299b5caa268677f6b7818a10c70.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "伯利恒",
        "authorType": 1,
        "authorUid": 500031572,
        "blockList": [
          {
            "articleId": 141054,
            "contentData": "https://imgsocial.yohobuy.com/grassImg/2019/05/14/16/01bfbf15cea3eeabce5a880090c6ac0fc1.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "height": "1080",
            "orderBy": 0,
            "templateKey": "image",
            "width": "1080"
          },
          {
            "articleId": 141054,
            "contentData": "https://imgsocial.yohobuy.com/grassImg/2019/05/14/16/01bb7bc7262d0d74f7ac8f0fb5de975d55.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "height": "1080",
            "orderBy": 1,
            "templateKey": "image",
            "width": "1080"
          }
        ],
        "commentCount": 2,
        "comments": [
          {
            "articleType": 1,
            "columnType": 1001,
            "content": "pinglun ",
            "createTime": 1558426662,
            "destId": 141054,
            "headIco": "http://head.static.yhbimg.com/yhb-head/2019/05/31/16/0166f1d299b5caa268677f6b7818a10c70.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "id": 632758,
            "status": 0,
            "uid": 500031572,
            "userName": "伯利恒"
          },
          {
            "articleType": 1,
            "columnType": 1001,
            "content": "最美",
            "createTime": 1558346922,
            "destId": 141054,
            "headIco": "http://head.static.yhbimg.com/yhb-head/2019/05/31/16/0166f1d299b5caa268677f6b7818a10c70.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "id": 632738,
            "status": 1,
            "uid": 500031572,
            "userName": "伯利恒"
          }
        ],
        "dataType": 1,
        "favoriteCount": 1,
        "hasAttention": "Y",
        "hasFavor": "N",
        "hasPraise": "Y",
        "identityAuthStatus": "N",
        "isAuthor": "Y",
        "praiseCount": 8,
        "productList": [
          {
            "collage_activity_id": 92,
            "collage_price": 1,
            "has_stock": "Y",
            "marketPrice": 179,
            "orderBy": 0,
            "productId": 210175,
            "productImage": "http://img13.static.yhbimg.com/goodsimg/2015/08/05/09/02ec52e11f0b55918fcaf7dab4f5251fef.png?imageView2/{mode}/w/{width}/h/{height}",
            "productName": "MYGESMART 渐变色logo长款长袖T恤",
            "productSkn": 51119883,
            "productType": 1,
            "salesPrice": 11,
            "status": 1
          },
          {
            "has_stock": "Y",
            "orderBy": 2,
            "productImage": "http://img10.static.yhbimg.com/goodsimg/2018/10/18/17/01699014e8981a532f27abc74730e40bbd.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "productName": "Air Jordan XX9 Low “Chicago Bulls”",
            "productSkn": 10000078,
            "productType": 2,
            "salesPrice": 2
          },
          {
            "has_stock": "N",
            "marketPrice": 439,
            "orderBy": 1,
            "productId": 99913,
            "productImage": "http://img12.static.yhbimg.com/goodsimg/2014/08/29/03/0281d89ba83f13658f6299223da7dc6a64.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "productName": "Preppy Elite 花纹贴布原色牛仔裤",
            "productSkn": 51058051,
            "productType": 1,
            "salesPrice": 11,
            "status": 1
          }
        ],
        "publishTime": 1557821866414,
        "publishTimeStr": "2019-05-14 16:17:46",
        "skillsDesc": "",
        "topicList": [
          {
            "id": 2636,
            "topicId": 2636,
            "topicName": "旅行在路上"
          }
        ]
      }
    ],
    "lastedTime": "1559635247293",
    "pageNo": 1,
    "pageSize": 5,
    "totalCount": 15,
    "totalPage": 3,
    "viewModel": 1
  },
  "md5": "15bbbf8c2c3d9ed8dd34ae6fefcda184",
  "message": "操作成功"
}