生成关联信息结构(LINK)

生成关联信息数据结构(LINK)

生成LINK数据类型的关联信息,返回关联信息的的JSON数据。

https://idr.gdsinsing.com/handle/tools/create-data-link

方法 数据类型
参数名 数据类型 说明
label String 标签(可选)
title String 超链接内容(必填)
value String 超链接URL(必填)
index String 标识索引号(可选)
pindex String 父标识索引号(可选)
index String 标识索引号(可选)
成功返回
{ "success": true, "data": { "index": 0, "type": "LINK", "data": { "format": "string", "value": "{\"pindex\":0,\"key\":\"\",\"cipher\":0,\"label\":\"test-label\",\"title\":\"广东鑫兴\",\"value\":\"https://www.gdsinsing.com\"}" } }, "msg": "", "ex": null }
失败返回
{ "success": false, "data": null, "msg": "title不能为空", "ex": { "code": "00300000", "reason": "title不能为空", "resolve": "请与系统管理员联系。" } }
var settings = { "url": "https://idr.gdsinsing.com/handle/tools/create-data-link", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "data": { "label": "test-label", "title": "", "value": "https://www.gdsinsing.com", "index": "", "pindex": "", "key": "" } }; $.ajax(settings).done(function (response) { console.log(response); });