相机查询服务-相机查询数据格式文档
类目type
key | 说明 | define |
type | 类型编号 | 11051 |
搜索模式
1. 品牌+相机+怎么样/参数/好吗(可选)
搜索词示例: 佳能相机
意图字段
key | 类型 | 示例 |
brand | string | 佳能 |
意图数据
{"type":11051,"slot_list":[{"key":"brand","value":"佳能"}]}
2. 相机品牌+型号
搜索词示例: 佳能5D
意图字段
key | 类型 | 示例 |
brand | string | 佳能 |
product | string | 5D |
意图数据
{"type":11051,"slot_list":[{"key":"brand","value":"佳能"},{"key":"product","value":"5D"}]}
3. 相机品牌+类型
搜索词示例: 索尼微单
意图字段
key | 类型 | 示例 |
brand | string | 索尼 |
category | string | 微单 |
意图数据
{"type":11051,"slot_list":[{"key":"brand","value":"索尼"},{"key":"category","value":"微单"}]}
数据字段
key | 类型 | 含义 | 说明 |
err_code | integer | 返回值 | 0代表正确,非0代表错误 请按如下规范返回错误码并且前端显示提示语: -1: 无结果 -2: 参数不对 -3: 系统错误 |
err_msg | string | 提示信息 | 针对于返回码的描述信息 |
item_list | array | 结果列表 | 返回多条结果时使用 |
item_list.name | string | 标题 | 索尼相机 |
item_list.price | string | 价格 | 1230元 ~ 1321元 |
item_list.description | string | 描述文案 | 周浏览25万次 |
item_list.img_url | string | 图片 | http:// |
item_list.jump_url | string | 跳转path | /page/index/index |
more_description | string | 点击查看更多结果 | 点击查看更多结果 |
jump_more | string | 跳转更多path | /page/index/index |
jump_url | string | 点击widget跳转路径 |
基于不同的搜索模式与自定义模板,开发者实际需要返回的数据字段为本文档所罗列的数据字段的子集。本文档仅做参考,开发者可在选择模板后,在微信公众平台下载相应的接口协议文档。详情见开发后台接口。