其他模块
说明:主要对产品信息进行一些基础操作,例如获取产品model信息、更新型号配置等。
获取产品model信息
- 调用方法
javascript
POST /api/product/getProductInfo- 参数说明
| 名称 | 类型 | 是否必需 | 示例 | 描述 |
|---|---|---|---|---|
| model | string | Y | "xxWIFI门锁" | 产品model |
- 返回说明
| 名称 | 类型 | 描述 |
|---|---|---|
| name | string | 产品名称 |
| manual | string | 产品手册地址 |
| image | string | 产品图片地址 |
| config | object | 产品配置 |
- 返回示例
json
{
"errorCode": 0,
"description": "ok",
"data": {
"name": "xxWIFI门锁",
"manual": "https:\/\/company.xie.star-lock.cn\/storage\/product_manual\/3\/6d11bae1-4c72-4162-bbf3-314d0e50c007.pdf",
"image": "https:\/\/company.xie.star-lock.cn\/storage\/product_image\/3\/d71431a9-36a8-454a-835c-23dc93274ef0.png",
"config": {}
}
}更新型号配置
- 调用方法
javascript
POST /api/product/updateModelConfig- 参数说明
| 名称 | 类型 | 是否必需 | 示例 | 描述 |
|---|---|---|---|---|
| model | string | Y | "xxWIFI门锁" | 产品model |
| config | object | Y | {} | 产品配置 |
- 返回示例
json
{
"errorCode": 0,
"description": "success",
"errorMsg": "success",
"data": {}
}