文档
测试

带点位的树

GET
http://192.168.1.88:8080/api/device_tree_with_parameters/

接口描述

请求头里面需要加认证参数,键为Authorization,值为jwt token(注意中间有空格)

请求头

参数名
类型
描述
必填
Authorization
string
示例:jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTk5MDE3MTQ0LCJlbWFpbCI6IiJ9.b7ck_L64UqV-e31vjouT4rsSKxnTiqeWBBWAQfu8Mgg
必填

响应参数

参数名
类型
描述
必填
title
string
示例:电
必填
key
string
示例:1(此处的的值来自于数据字典里面的能耗类型id)
必填
children
object
能耗类型为电设备的树形子代
必填
title
string
示例:A栋
必填
key
string
示例:1-1(在父代的key值上加上自己的key,自己的key来自于区域id)
必填
parentId
string
示例:1
必填
is_point
boolean
示例:false
必填
is_device
boolean
示例:false
必填
is_area
boolean
示例:true
必填
children
object
树形子代
必填
title
string
示例:1楼
必填
key
string
示例:1-1-2
必填
parentId
string
示例:1-1
必填
is_point
boolean
示例:false
必填
is_device
boolean
示例:false
必填
is_area
boolean
示例:true
必填
children
object
树形子代
必填
title
string
示例:1楼东区
必填
key
string
示例:1-1-2-3
必填
parentId
string
示例:1-1-2
必填
is_point
boolean
示例:false
必填
is_device
boolean
示例:false
必填
is_area
boolean
示例:true
必填
children
object
树形子代
必填
title
string
示例:A电表
必填
key
string
示例:1-1-2-3-1(自己的key来自于设备管理中的序号id)
必填
parentId
string
示例:1-1-2-3
必填
is_point
boolean
示例:false
必填
is_device
boolean
示例:true
必填
is_area
boolean
示例:false
必填
children
object
树形子代
必填
title
string
示例:U
必填
key
string
示例:1-1-2-3-1-U
必填
is_point
boolean
示例:true
必填
is_device
boolean
示例:false
必填
is_area
boolean
示例:false
必填
parentId
string
示例:1-1-2-3-1
必填
device_type
int
示例:1
必填
device_type
string
示例:1
必填
device_type
string
示例:1
必填
device_type
string
示例:1
必填
device_type
string
示例:1
必填

说明 / 示例

# ****以下是响应内容示例**** [ { "title": "电", "key": "1", "children": [ { "title": "A栋", "key": "1-1", "parentId": "1", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "1楼", "key": "1-1-2", "parentId": "1-1", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "1楼东区", "key": "1-1-2-3", "parentId": "1-1-2", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "A电表", "key": "1-1-2-3-1", "parentId": "1-1-2-3", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "U", "key": "1-1-2-3-1-U", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-3-1", "device_type": 1 }, { "title": "I", "key": "1-1-2-3-1-I", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-3-1", "device_type": 1 }, { "title": "E", "key": "1-1-2-3-1-E", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-3-1", "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 }, { "title": "1楼西区", "key": "1-1-2-4", "parentId": "1-1-2", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "B电表", "key": "1-1-2-4-2", "parentId": "1-1-2-4", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "U", "key": "1-1-2-4-2-U", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-4-2", "device_type": 1 }, { "title": "I", "key": "1-1-2-4-2-I", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-4-2", "device_type": 1 }, { "title": "E", "key": "1-1-2-4-2-E", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-2-4-2", "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 }, { "title": "2楼", "key": "1-1-5", "parentId": "1-1", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "2楼东区", "key": "1-1-5-6", "parentId": "1-1-5", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "C电表", "key": "1-1-5-6-5", "parentId": "1-1-5-6", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "U", "key": "1-1-5-6-5-U", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-6-5", "device_type": 1 }, { "title": "I", "key": "1-1-5-6-5-I", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-6-5", "device_type": 1 }, { "title": "E", "key": "1-1-5-6-5-E", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-6-5", "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 }, { "title": "2楼西区", "key": "1-1-5-7", "parentId": "1-1-5", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "D电表", "key": "1-1-5-7-7", "parentId": "1-1-5-7", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "U", "key": "1-1-5-7-7-U", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-7-7", "device_type": 1 }, { "title": "I", "key": "1-1-5-7-7-I", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-7-7", "device_type": 1 }, { "title": "E", "key": "1-1-5-7-7-E", "is_point": true, "is_device": false, "is_area": false, "parentId": "1-1-5-7-7", "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 } ], "device_type": 1 } ], "is_point": false, "is_area": false, "is_device": false, "device_type": 1 }, { "title": "水", "key": "2", "children": [ { "title": "B栋", "key": "2-8", "parentId": "2", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "1楼", "key": "2-8-9", "parentId": "2-8", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "1楼东区", "key": "2-8-9-10", "parentId": "2-8-9", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "A水表", "key": "2-8-9-10-3", "parentId": "2-8-9-10", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "SF", "key": "2-8-9-10-3-SF", "is_point": true, "is_device": false, "is_area": false, "parentId": "2-8-9-10-3", "device_type": 2 }, { "title": "LF", "key": "2-8-9-10-3-LF", "is_point": true, "is_device": false, "is_area": false, "parentId": "2-8-9-10-3", "device_type": 2 } ], "device_type": 2 } ], "device_type": 2 }, { "title": "1楼西区", "key": "2-8-9-11", "parentId": "2-8-9", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "B水表", "key": "2-8-9-11-4", "parentId": "2-8-9-11", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "SF", "key": "2-8-9-11-4-SF", "is_point": true, "is_device": false, "is_area": false, "parentId": "2-8-9-11-4", "device_type": 2 }, { "title": "LF", "key": "2-8-9-11-4-LF", "is_point": true, "is_device": false, "is_area": false, "parentId": "2-8-9-11-4", "device_type": 2 } ], "device_type": 2 } ], "device_type": 2 } ], "device_type": 2 } ], "device_type": 2 } ], "is_point": false, "is_area": false, "is_device": false, "device_type": 2 }, { "title": "热", "key": "3", "children": [ { "title": "C栋", "key": "3-12", "parentId": "3", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "A热量表", "key": "3-12-8", "parentId": "3-12", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "SF", "key": "3-12-8-SF", "is_point": true, "is_device": false, "is_area": false, "parentId": "3-12-8", "device_type": 3 }, { "title": "LF", "key": "3-12-8-LF", "is_point": true, "is_device": false, "is_area": false, "parentId": "3-12-8", "device_type": 3 } ], "device_type": 3 } ], "device_type": 3 } ], "is_point": false, "is_area": false, "is_device": false, "device_type": 3 }, { "title": "冷", "key": "4", "children": [ { "title": "D栋", "key": "4-13", "parentId": "4", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "A冷量表", "key": "4-13-9", "parentId": "4-13", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "SF", "key": "4-13-9-SF", "is_point": true, "is_device": false, "is_area": false, "parentId": "4-13-9", "device_type": 4 }, { "title": "LF", "key": "4-13-9-LF", "is_point": true, "is_device": false, "is_area": false, "parentId": "4-13-9", "device_type": 4 } ], "device_type": 4 } ], "device_type": 4 } ], "is_point": false, "is_area": false, "is_device": false, "device_type": 4 }, { "title": "气", "key": "5", "children": [ { "title": "E栋", "key": "5-14", "parentId": "5", "is_point": false, "is_device": false, "is_area": true, "children": [ { "title": "A气表", "key": "5-14-6", "parentId": "5-14", "is_point": false, "is_device": true, "is_area": false, "children": [ { "title": "SF", "key": "5-14-6-SF", "is_point": true, "is_device": false, "is_area": false, "parentId": "5-14-6", "device_type": 5 }, { "title": "LF", "key": "5-14-6-LF", "is_point": true, "is_device": false, "is_area": false, "parentId": "5-14-6", "device_type": 5 } ], "device_type": 5 } ], "device_type": 5 } ], "is_point": false, "is_area": false, "is_device": false, "device_type": 5 } ]