评论数量

评论列表

请求地址

GET https://{host}/openapi/comment/count

请求参数

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

Param

属性 类型 默认值 必填 说明
type int 类型ID。 如果是0,则查询商品评论;如果是1,则查询专题评论。
valueId int 商品或专题ID。如果type是0,则是商品ID;如果type是1,则是专题ID。

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "allCount": 15,
    "hasPicCount": 10
  }
}

参数说明

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

DATA

属性 类型 说明
allCount int 所有评论数量
hasPicCount int 带图片评论数量

errcode 的合法值

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

results matching ""

    No results matching ""