URL地址:http://ip:port /wapi/v1/search/lite
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000433079 | 是 | 视图id |
keywords | String | test | 是 | 搜索值 |
scope | integer | 0 | 是 | 搜索模式 0:全查 1:当前页 2:当前页包含子图 |
[
"importtestrack1229F11",
"importtestrack1229",
"importtestrack1229F32",
"importtestrack1229F25",
"importtestrack1229F28",
"importtestrack1229B40",
"test1",
"testTrayRack",
"importtestrack1229F19",
"importtestrack1229F32:03 \nimporttestrack1229F25:03",
"importtestrack1229F25:01 \nimporttestrack1229F32:01",
"importtestrack1229F11:01 \nimporttestrack1229F19:01",
"importtestrack1229F25:04 \nimporttestrack1229F32:04",
"importtestrack1229F19:04 \nimporttestrack1229F19:03"
]
接口描述:传入搜索值、视图id和搜索模式,返回搜索结果。
URL地址:http://ip:port /wapi/v1/search
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000433079 | 是 | 视图id |
keywords | String | test1 | 是 | 搜索值 |
exactMatch | Boolean | false | 否 | 是否精确完全匹配 |
scope | integer | 0 | 是 | 搜索模式 0:全查 1:当前页 2:当前页包含子图 3:对象关系搜索 |
allProperties | List<String> | ["ip"] | 否 | 列选择器字段名 |
参数名 | 类型 | 说明 |
---|---|---|
result_list | List<Map> | 搜索列表结果 |
vis_links | List<Map> | 搜索列表内link对象在当前视图的显示 |
vis_nodes | List<Map> | 搜索列表内node对象在当前视图的显示 |
blinkid | Long | 跳转闪烁对象id |
diagramid | Long | 跳转视图id |
id | Long | 对象本身id |
name | String | 对象本身名称 |
typename | String | 对象本身型号 |
propertyName | String | 属性搜索时搜索结果对应属性名称 |
propertyValue | String | 属性搜索时搜索结果对应属性值 |
relation | String | 关系搜索时关系名称 |
{
"code": 200,
"data": {
"vis_nodes": [
{
"id": 749006658708,
"nodeId": 24749000621215,
"diagramId": 24000000087173,
"x": 12954400.619319776,
"y": 4839911.695664589,
"z": null,
"width": 20,
"height": 20,
"imageOverride": null,
"keepAspectRatio": false,
"angle": 0,
"canMove": true,
"canResize": true,
"canRotate": true,
"canDelete": true,
"zOrder": 0,
"displayed": true,
"typeId": 26000000132991,
"name": "熔纤包-red1 144 ",
"parentId": 24000000087173,
"slotId": null,
"masterId": null,
"route": "24000000000001/24000000087169/24000000087173/24749000621215",
"mapZoom": 18,
"nodeTypeName": "熔纤包-red1 144 ",
"nodeTypeImage": "lo8cq6ll.svg",
"nodeTypeImage2": "w8kuzczm.svg",
"nodeTypeTypeGroup": 7,
"nodeTypeHeight": 200,
"nodeTypeWidth": 200,
"mountedNodesData": null,
"shapes": null,
"diagramSublink": null,
"diagramSublinks": null,
"unitsHeight": 4,
"hasEmbeddedFile": false,
"clusterSize": null,
"groupId": null,
"threeDBackground": null,
"depth": 1,
"cluster": null,
"master": true,
"blocked": false
},
{
"id": 749006658853,
"nodeId": 24749000621216,
"diagramId": 24000000087173,
"x": 12954320.599305792,
"y": 4839638.194422758,
"z": null,
"width": 20,
"height": 20,
"imageOverride": null,
"keepAspectRatio": false,
"angle": 0,
"canMove": true,
"canResize": true,
"canRotate": true,
"canDelete": true,
"zOrder": 0,
"displayed": true,
"typeId": 26000000132991,
"name": "熔纤包-red1 144 ",
"parentId": 24000000087173,
"slotId": null,
"masterId": null,
"route": "24000000000001/24000000087169/24000000087173/24749000621216",
"mapZoom": 18,
"nodeTypeName": "熔纤包-red1 144 ",
"nodeTypeImage": "lo8cq6ll.svg",
"nodeTypeImage2": "w8kuzczm.svg",
"nodeTypeTypeGroup": 7,
"nodeTypeHeight": 200,
"nodeTypeWidth": 200,
"mountedNodesData": null,
"shapes": null,
"diagramSublink": null,
"diagramSublinks": null,
"unitsHeight": 4,
"hasEmbeddedFile": false,
"clusterSize": null,
"groupId": null,
"threeDBackground": null,
"depth": 1,
"cluster": null,
"master": true,
"blocked": false
}
],
"vis_links": [
{
"linkId": 25416000449645,
"typeId": 27000000000112,
"name": "lyfmapsearchtest",
"fromNode": 24749000621215,
"toNode": 24749000621216,
"fromRoute": "24000000000001/24000000087169/24000000087173/24749000621215",
"toRoute": "24000000000001/24000000087169/24000000087173/24749000621216",
"visLinkId": 416001734350,
"diagramId": 24000000087173,
"routepath": "{\"edge.expanded\":false,\"edge.ripple.elevation\":-20,\"edge.ripple.size\":1,\"edge.ripple.both\":true}",
"fromAnchorPointX": 0.5,
"fromAnchorPointY": 0.5,
"toAnchorPointX": 0.5,
"toAnchorPointY": 0.5,
"canDelete": true,
"canMove": true,
"zOrder": -1,
"displayed": true,
"color": "#ffde00",
"thickness": 0.6,
"linkStyle": 0,
"htLinkType": null,
"mapZoom": null
}
],
"result_list": [
{
"id": 25416000449645,
"name": "lyfmapsearchtest",
"typename": "OS2-24-ID",
"diagramid": 24000000087173,
"blinkid": 25416000449645,
"propertyName": "名称",
"propertyValue": "lyfmapsearchtest"
}
]
}
}
接口描述:传入搜索值、视图id和搜索模式,返回搜索结果,用作移动端app的全局搜索,比上个接口多返回一个对象图片和对象层级路径。
URL地址:http://ip:port /wapi/v1/search/app
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000433079 | 是 | 视图id |
keywords | String | test1 | 是 | 搜索值 |
exactMatch | Boolean | false | 是 | 是否精确完全匹配 |
scope | integer | 0 | 是 | 搜索模式 0:全查 1:当前页 2:当前页包含子图 |
{
"code": 200,
"data": [
{
"id": 24000000430213,
"diagramId": 24000000173155,
"name": "test1",
"type": "Tray_Node",
"propertyName": "名称",
"propertyValue": "test1",
"fromNode": null,
"toNode": null,
"nodeSelf": {
"mapZoom": 3.0,
"x": 45.181130974826694,
"y": 96.60170931224772
},
"image": "o70ux8tu.png",
"position": "顶层>数据中心11>test1",
"node": true
}
]
}