相关专题

专题详情

请求地址

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

请求参数

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

param

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

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "total": 0,
    "list": [
      {
        "id": 266,
        "title": "一条丝巾就能提升时髦度",
        "subtitle": "不知道大家对去年G20时,严选与国礼制造商一起推出的《凤凰于飞》等几款丝巾是否还...",
        "price": 0.00,
        "readCount": "35.0k",
        "picUrl": "https://yanxuan.nosdn.127.net/14919007135160213.jpg",
        "sortOrder": 0,
        "goods": "[]",
        "content": null
      }
    ]
  }
}

参数说明

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

DATA

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

topic

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

errcode 的合法值

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

results matching ""

    No results matching ""