添加标识载体

## 接口名称 添加标识载体 ## 接口描述 创建标识后,添加对应标识载体。 ## 接口地址 https://api.gdsinsing.com/api/add-carrier ## 调用方式 |方法|数据类型| |-|-| |[ ] GET|[ ] form-data| |[X] POST|[X] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 参数说明 |名称|位置|类型|必选|说明| |---|---|---|---|---| |handle|body|string|是|关联标识码| |type|body|string|是|载体类型| |token|body|string|是|动态令牌token| |code|body|string|是|载体编号| > 载体码类型type取值 >> RFID >> ECODE >> OID >> GS1 >> MA >> NFC >> CUS ## 返回结果 |参数名|位置|类型|说明| |-|-|-|-| |result||Int|接口调用结果(0:调用失败,1:调用成功)| |data||String|数据体| |errorcode||String|错误码| |msg||String|接口调用结果的文字描述(一般为错误异常描述)| |solve||String|处理方法文字描述(调用接口失败时)| #### 成功返回 ```json { "result": 1, "data": null, "errorcode": null, "msg": "ok", "solve": null } ``` #### 失败返回 ```json { "result": 0, "data": null, "errorcode": "", "msg": "载体码已存在", "solve": "" } ``` ## 调用例子 ``` JavaScript var settings = { "url": "https://api.gdsinsing.com/api/add-carrier", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "data": { "handle": "88.168.88/1684138974701", "type": "RFID", "token": "动态令牌token", "code": "794389438903490093423" } }; $.ajax(settings).done(function (response) { console.log(response); }); ```