接口描述:传入连线型号id,纤芯名称,纤芯位置,纤芯大小,纤芯颜色创建建模纤芯。
URL地址:http://ip:port /wapi/v1/predefined_sublinks/linkTypes/{linkTypeId}
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
linkTypeId | Long | 27000000000167 | 是 | 型号id |
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | 3 | 是 | 纤芯名称 |
color | String | #005CAF | 是 | 纤芯颜色 |
x | Double | 50 | 是 | X坐标 |
y | Double | 50 | 是 | Y坐标 |
thickness | Double | 50 | 是 | 纤芯半径 |
{
"code": 201,
"message": "success",
"predefinedSublink": {
"id": 38000000002067,
"linkTypeId": 27000000000167,
"name": "0",
"color": "#005CAF",
"thickness": 50,
"x": 50,
"y": 50,
"relativeX": 50,
"relativeY": 50
},
"predefinedSubcomponentFields": {
"id": 52000000001300,
"predefinedSublinkId": 38000000002067,
"linkId": null,
"propertyId": 39000000000001,
"value": "0",
"offsetX": 0,
"offsetY": 0,
"fontSize": 10,
"color": "#000000",
"angle": 0,
"backgroundColor": null
}
}
接口描述:传入连线型号id,获取内部所有建模纤芯的信息。
URL地址:http://ip:port /wapi/v1/predefined_sublinks/ {linkTypeId}
访问方法::Post
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
linkTypeId | Long | 27000000000167 | 是 | 型号id |
{
"code": 200,
"message": "success",
"data": [
{
"id": 38000000002067,
"linkTypeId": 27000000000167,
"name": "0",
"color": "#005CAF",
"thickness": 50.0,
"x": 50.0,
"y": 50.0,
"relativeX": 50.0,
"relativeY": 50.0
}
]
}
接口描述:传入建模纤芯id返回建模纤芯的字段属性和本身属性。
URL地址:http://ip:port /wapi/v1/predefined_sublinks/ {ps_id}
访问方法::GET
请求参数:
path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
ps_id | Long | 38000000003789 | 是 | 建模纤芯id |
参数名 | 类型 | 说明 |
---|---|---|
code | int | 状态码 |
data | Map | 回参数据 |
properties | Map | 建模纤芯属性,map内key是属性名,value是属性值 |
setting | Map | 建模纤芯本身属性 |
id | Long | 建模纤芯id |
linkTypeId | Long | 建模纤芯所属线缆型号id |
name | String | 建模纤芯名 |
color | String | 建模纤芯颜色 |
thickness | Double | 建模纤芯直径 |
x | Double | 建模纤芯横坐标 |
y | Double | 建模纤芯纵坐标 |
relativeX | Double | 建模纤芯相对横坐标 |
relativeY | Double | 建模纤芯相对纵坐标 |
接口描述:传入建模纤芯id以及要修改的属性,修改对应建模纤芯的信息。
URL地址:http://ip:port/wapi/v1/predefined_sublinks/{predefinedSublinkId}/update
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
predefinedSublinkId | Long | 27000000000167 | 是 | 纤芯id |
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | 3 | 是 | 纤芯名称 |
color | String | #005CAF | 是 | 纤芯颜色 |
x | Double | 289 | 是 | X坐标 |
y | Double | 81 | 是 | Y坐标 |
thickness | Double | 50 | 是 | 纤芯半径 |
properties | Map<String,String> | {"纤芯颜色":"蓝", "套管颜色":"黄"} | 否 | 属性字段 |
接口描述:传入建模纤芯id删除对应建模纤芯。
URL地址:http://ip:port/wapi/v1/predefined_sublinks/{predefinedSublinkId}
访问方法::Delete
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
predefinedSublinkId | Long | 27000000000167 | 是 | 纤芯id |
{
"code": 200
}