专题详情

专题详情

请求地址

GET https://{host}/openapi/topic/detail

请求参数

属性 类型 默认值 必填 说明
x-token String 用户token

param

属性 类型 默认值 必填 说明
topicId int topic id

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "topic": {
      "id": 264,
      "title": "设计师们推荐的应季好物",
      "subtitle": "原创设计春款系列上新",
      "price": 29.90,
      "readCount": "77.7k",
      "picUrl": "https://yanxuan.nosdn.127.net/14918201901050274.jpg",
      "sortOrder": 0,
      "goods": "[1057036,1055012,1055016,1130037]",
      "content": "<img src=\"//yanxuan.nosdn.127.net/75c55a13fde5eb2bc2dd6813b4c565cc.jpg\">\n"
    },
    "goods": [
      {
        "id": 1057036,
        "goodsSn": "1057036",
        "name": "日式纯色水洗亚麻抱枕",
        "categoryId": 1008002,
        "brandId": 1001000,
        "galleryList": [
          "http://yanxuan.nosdn.127.net/bec107bf0cc86dcf90fa084584d68c76.jpg",
          "http://yanxuan.nosdn.127.net/d5da1d907ce3e5dcc8cf72e925d9494b.jpg",
          "http://yanxuan.nosdn.127.net/2f82661892afb0fd5efa8ff343f9941e.jpg",
          "http://yanxuan.nosdn.127.net/fd1d9edc261fb68844c0fb65f0c1a4a4.jpg"
        ],
        "keywords": "",
        "brief": "水洗亚麻,透气亲肤",
        "isOnSale": 1,
        "picUrl": "http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png",
        "shareUrl": "",
        "unit": "件",
        "counterPrice": 99.00,
        "retailPrice": 79.00,
        "detail": null
      }
    ]
  }
}

参数说明

属性 类型 说明
data DATA 包含返回的数据
errcode number 错误码
errmsg string 错误信息

DATA

属性 类型 说明
topic topic 数据列表
goods list(product) 数据列表

topic

属性 类型 说明
id int id
title String 标题
subtitle String 副标题
price BigDecimal 商品最低价
readCount String 阅读量
picUrl String 展示图片
sortOrder int 排序
goods List(int) 相关商品id
content String 详情内容

product

属性 类型 说明
id int 商品id
goodsSn String 商品编号
name String 商品名称
categoryId int 商品所属类目ID
brandId String 品牌id
galleryList String 商品宣传图片列表
keywords String 商品关键字,采用逗号间隔
brief String 商品简介
isOnSale String 是否上架
picUrl String 商品页面商品图片
shareUrl String 商品分享朋友圈图片
unit String 商品单位,例如件、盒
counterPrice BigDecimal 专柜价格
retailPrice BigDecimal 零售价格
detail String 商品详细介绍,是富文本格式

errcode 的合法值

说明 最低版本
-1 系统错误
0 请求成功
20001 参数为空
20003 参数错误

results matching ""

    No results matching ""