文档
测试

设备创建

POST
/qgy/equipment/save

接口描述

添加设备

请求参数

参数名
类型
描述
必填
deviceKey
String
设备序列号
必填
userId
String
当前用户
必填
tag
String
设备备注,开发者自定义传入
可选
name
String
设备名称
可选
sceneGuid
String
设备场景
可选
type
Integer
设备类型 指定值: 0:收银,1:会员,2:后厨
必填

返回示例

``` { "result": 1, "msg": "successful operation!", "code": "QG_SUS1000", "data": { "id": 12, "sceneGuid": "ceshi", "deviceKey": "ceshi", "name": "cehsi", "tag": "ceshi", "userId": 40, "codeUrl": null, "state":1, "type":0, "createTime":"2018-11-28T07:10:30+0000" } } ```