垃圾分类(life-garbageClassification)
请求查询垃圾分类信息,物品名称和物品图片两个参数只需要填写一个。
1、使用物品名称查询
- {
- "slots": {
- "itemName": {
- "name": "itemName",
- "slotType": "string",
- "values": [{
- "real": "矿泉水瓶"
- }]
- }
- }
- }
2、使用物品图片查
- {
- "slots": {
- "imageUrl": {
- "name": "imageUrl",
- "slotType": "string",
- "values": [{
- "real": "https://imageURL/image.png"
- }]
- }
- }
- }
3、使用物品图片查
| 成员名称 | 描述 | 是否必选 | 类型 | 取值范围 |
| itemName | 物品名称,如:矿泉水瓶 | 否 | string | 最大长度:64 |
| imageUrl | 物品图片地址,如:https://imageURL/image.png | 否 | string | 最大长度:2048 |
图文型通用模板内容定义,对应的templateType为:basic-template。
- {
- "type": "basic-template",
- "contentItems": [{
- "id": "1",
- "title": "矿泉水瓶",
- "score": 0,
- "content": [{
- "subtitle": "矿泉水瓶",
- "combBody": "矿泉水瓶,可回收物,要倒净液体、撕下包装、压扁瓶体。。。"
- }],
- "tag": [{
- "tagMode": "NORMAL",
- "tagContent": "string",
- "color": "NORMAL"
- }],
- "operateType": "voice",
- "voiceCommand": "第1个",
- "image": [{
- "url": "https://imageURL/image.png",
- "imageMode": "SQUARE"
- }],
- "link": {
- "webURL": "https://weburl",
- "deepLink": {
- "url": "https://deeplinkurl",
- "appName": "appname",
- "appPackage": "com.app.packagename",
- "minVersion": 0,
- "minAndroidAPILevel": 0
- },
- "quickApp": {
- "url": "https://quickappurl",
- "minPlatformVersion": 0,
- "minVersion": 0
- }
- },
- "similarity": 0
- }],
- "box": "string"
- }
| 成员名称 | 描述 | 是否必选 | 类型 | 取值范围 |
| type | 卡片模板类型 | 否 | string | 枚举值: basic-template, grid-template, data-template, transaction-template |
| contentItems | 图文型模板内容定义 | 否 | BasicTemplateInfoItem | |
| box | 图片识别场景,图片识别范围,格式为左,上,右,下的坐标值 | 否 | string | 最大长度:64 |