生(shēng)成關聯信息結構(TEXT)
## 接口名稱
生(shēng)成關聯信息數(shù)據結構(TEXT)
## 接口描述
生(shēng)成TEXT數(shù)據類型的關聯信息,返回關聯信息的的JSON數(shù)據。
## 接口地址
https://idr.gdsinsing.com/handle/tools/create-data-text
## 調用方式
|方法|數(shù)據類型|
|-|-|
|[ ] GET|[ ] form-data|
|[X] POST|[X] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 參數(shù)說明(míng)
|參數(shù)名|數(shù)據類型|說明(míng)|
|-|-|-|
|label|String|标簽(可(kě)選)|
|value|String|值(必填)|
|index|String|标識索引号(可(kě)選)|
|pindex|String|父标識索引号(可(kě)選)|
|index|String|标識索引号(可(kě)選)|
## 返回結果
#### 成功返回
```JavaScript
{
"success": true,
"data": {
"index": 0,
"type": "TEXT",
"data": {
"format": "string",
"value": "{\"pindex\":0,\"key\":\"\",\"cipher\":0,\"label\":\"test-label\",\"value\":\"test-value\"}"
}
},
"msg": "",
"ex": null
}
```
#### 失敗返回
```JavaScript
{
"success": false,
"data": null,
"msg": "value不能為(wèi)空(kōng)",
"ex": {
"code": "00300000",
"reason": "value不能為(wèi)空(kōng)",
"resolve": "請(qǐng)與系統管理(lǐ)員聯系。"
}
}
```
## 調用例子
``` JavaScript
var settings = {
"url": "https://idr.gdsinsing.com/handle/tools/create-data-text",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"label": "test-label",
"value": "test-value",
"index": "",
"pindex": "",
"key": ""
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```