概述
接口以WebSocket形式提供, 服务地址 wss://服务器IP:50064/API-GRPC/
, 请求和返回的数据类型均为JSON字符串. WebSocket的基本原理参考 https://developer.mozilla.org/zh-CN/docs/Web/API/WebSocket , 更多请搜索. 几乎所有的语言都有对应的支持, 比如Java有OkHttp等.
接口协议
请求数据格式为(下方为数据JSON, 接口以JSON字符串形式接收):
{
"X-Secret-Key": null,
"X-Token": "Token",
"protoName": "协议",
"serviceName": "服务",
"methodName": "方法",
"requestJson": "数据JSON"
}
返回数据格式为(下方为数据JSON, 接口以JSON字符串形式返回):
{
"type": "Next",
"json": "数据JSON"
}
或:
{
"type": "Completed"
}
或:
{
"type": "Error",
"text": "账户或密码错误"
}
当type为 Next
时, 表示接口返回了一条数据, 可能返回n次(n为0到无限大). 当type为 Completed
时, 表示接口处理完毕. 当type为 Error
时, 表示请求数据有问题,或无法找到数据, text中会给出问题原因.
接口请求和返回数据的格式是固定的, 以下API说明只对请求数据属性作出说明. 返回数据形式完全一样, 只是数据JSON的具体内容不同.
API
所有API调用前必须进行登录验证, 验证通过后拿到Token. 每次调用API时必须将拿到的Token值设置在 X-Token
中. Token每次登录验证时会刷新, 在下次登录前一直有效. 以下API会以登录为例作出详细说明, 其他API仅说明请求数据, 返回数据中type为next时json值的格式. 开始调用API前, 请建立一个WebSocket连接, 然后用此连接发送和接收数据.
登录
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": null,
"protoName": "organization.person",
"serviceName": "PersonService",
"methodName": "Login",
"requestJson": "{\"username\":\"账户\",\"password\":\"密码\",\"device_type\":\"api\",\"device_id\":\"随机ID\"}"
}
替换账户和密码为你的真实值, 替换随机ID为UUID(每次登录时生成).
将请求数据以JSON字符串发送, 如果账户或密码错误, 则你会收到:
{"text":"账户或密码错误","type":"Error"}
如果正确, 则会收到两条数据:
{"json":"{\"id\":\"test\",\"department_id\":\"4e7721a5-b2bf-438c-8f40-ab20b278fe87\",\"position_ids\":[],\"role_ids\":[\"admin\"],\"name\":\"测试\",\"pinyin\":\"ceshi\",\"department\":{\"id\":\"4e7721a5-b2bf-438c-8f40-ab20b278fe87\",\"parent_id\":\"cbbef69d-c97c-4bea-9a84-00fc783a1996\",\"name\":\"测三\",\"pinyin\":\"cesan\",\"parent\":{\"id\":\"cbbef69d-c97c-4bea-9a84-00fc783a1996\",\"parent_id\":\"system\",\"name\":\"测试\",\"pinyin\":\"ceshi\",\"parent\":{\"id\":\"system\",\"parent_id\":\"\",\"name\":\"系统\",\"pinyin\":\"xitong\",\"person_count\":\"29\"},\"person_count\":\"28\"},\"person_count\":\"3\"},\"positions\":[],\"roles\":[{\"id\":\"admin\",\"power_ids\":[\"menu-1\",\"menu-1-01\",\"menu-1-01-001\",\"menu-1-01-002\",\"menu-1-01-003\",\"menu-1-01-004\",\"menu-1-01-005\",\"menu-1-01-006\",\"menu-1-01-007\",\"menu-1-01-008\",\"menu-1-02\",\"menu-1-02-001\",\"menu-1-02-002\",\"menu-1-02-003\",\"menu-1-02-004\",\"menu-1-03\",\"menu-1-03-001\",\"menu-1-03-002\",\"menu-1-03-003\",\"menu-1-03-004\",\"menu-1-03-005\",\"menu-1-03-006\",\"menu-1-03-007\",\"menu-1-03-008\",\"menu-2\",\"menu-2-01\",\"menu-2-01-001\",\"menu-2-01-002\",\"menu-2-01-003\",\"menu-2-01-004\",\"menu-2-01-005\",\"menu-2-02\",\"menu-2-02-001\",\"menu-2-02-002\",\"menu-2-02-003\",\"menu-2-03\",\"menu-2-03-001\",\"menu-2-03-002\",\"menu-2-03-003\",\"menu-2-03-004\",\"menu-2-04\",\"menu-2-05\",\"menu-2-05-001\",\"menu-2-05-002\",\"menu-2-05-003\",\"menu-2-05-004\",\"menu-3\",\"menu-3-01\",\"menu-3-03\",\"menu-3-04\",\"menu-3-05\",\"menu-4\",\"menu-4-01\",\"menu-4-01-001\",\"menu-4-01-002\",\"menu-4-01-003\",\"menu-4-01-004\",\"menu-4-02\",\"menu-4-02-001\",\"menu-4-02-002\",\"menu-4-03\",\"menu-4-03-001\",\"menu-4-03-002\",\"menu-4-04\",\"menu-4-05\",\"menu-4-06\",\"menu-4-07\",\"menu-4-07-001\",\"menu-4-07-002\",\"menu-5\"],\"name\":\"系统管理员\",\"description\":\"拥有最高权限\",\"power_view_data\":{}}],\"username\":\"t\",\"status\":\"NORMAL\",\"token\":\"bd4013fe-6e33-4868-8fb1-54b5b287b947\",\"phone\":\"13800138000\",\"sex\":\"男\",\"age\":30,\"email\":\"\",\"identity\":\"\",\"remark\":\"拥有最高权限\",\"photo_file_id\":\"\"}","type":"Next"}
type为Next时,会返回用户数据JSON. 从中提取
token
属性的值, 比如a23f966a-4e10-4d51-9d08-38041302f09e
. 调用其他API时需要用此值设置请求中的属性X-Token
, 由于你不会用到其它属性, 故其它属性不作说明.
{"type":"Completed"}
type为Completed时,表示本次请求处理完毕. 除非你收到
{"type":"Error"}
, 否则在收到Completed前不应结束对数据的接收.
管廊段、舱室、分区信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.tunnel.cabin.section",
"serviceName": "TunnelCabinSectionService",
"methodName": "Search",
"requestJson": "{}"
}
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"id": "01-01-001",//分区id
"state": "",
"cabin_id": "01-01",
"cabin": {
"id": "01-01",//舱室ID
"state": "",
"tunnel_id": "01",
"tunnel": {
"id": "01",//管廊id
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",//所属项目ID
"state": "正常",
"name": "城北路综合管廊",//所属项目名称
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",//管廊类型
"name": "城北路干线管廊",//管廊名称
"code": "1",
"name_sample": "CBL",//简称
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",//起始里程
"connect": [],
"timestamp": "1547473729070"
},
"name": "电力舱",//舱室名称
"buried_type": "矩形",
"material": "砼",
"line_types": [
"电力电缆"
],
"size_width": 2400,
"size_height": 4050,
"region_xys": "",
"region_color": "",
"remark": ""
},
"name": "ACU001",//分区名称
"mileage_begin": 80,
"mileage_over": 360,
"region_xys": "",
"region_color": "",
"remark": ""
}
节点信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.asset_other",
"serviceName": "AssetOtherService",
"methodName": "Find",
"requestJson": "{\"category\":\"节点\",\"start\":起始行数,\"count\":本页数量,\"keyword\":\"\"}"
}
本页数量和起始行数换成数字.
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"info_array": [
{
"id": "01SSGXFZK096.mesh",//模型ID
"name": "输水管线分支口096", //节点名称
"category": "节点",
"tunnel_id": "01",
"tunnel": {
"id": "01",//管廊ID
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",
"name": "城北路干线管廊",//管廊名称
"code": "1",
"name_sample": "CBL",
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",
"connect": [],
"timestamp": "1547473729070"
},
"cabin_id": "",
"section_id": "",
"node": {
"type": "输水管线分支口",//节点类型
"mileage": "K4+700.00",//里程
"associated_area": [
"水信舱ACU014"
],
"remark": ""
},
"coordinate": {
"longitude": 120.591951531179,//经度
"latitude": 31.3408611027015,//纬度
"height": 2.2439896594733,//高度
"pitch_angle": 0,//俯仰角
"rolling_angle": 0,//翻滚角
"yaw_angle": 0,//偏航角
"distance": 9.84058130870205
},
"timestamp": "1547473751638"
}
],
"count": "56"
}
管线信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.asset_other",
"serviceName": "AssetOtherService",
"methodName": "Find",
"requestJson": "{\"category\":\"管线\",\"start\":起始行数,\"count\":本页数量,\"keyword\":\"\"}"
}
本页数量和起始行数换成数字.
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"info_array": [
{
"id": "0102000138000015.mesh",//模型ID
"name": "非饮用水管线(预留)",//管线名称
"category": "管线",
"tunnel_id": "01",
"cabin_id": "01-02",
"cabin": {
"id": "01-02",//舱室ID
"state": "",
"tunnel_id": "01",
"tunnel": {
"id": "01",
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",
"name": "城北路干线管廊",
"code": "1",
"name_sample": "CBL",
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",
"connect": [],
"timestamp": "1547473729070"
},
"name": "水信舱",//舱室名称
"buried_type": "矩形",
"material": "砼",
"line_types": [
"电信电缆",
"输水管线",
"非饮用水管线"
],
"size_width": 2800,
"size_height": 4050,
"region_xys": "",
"region_color": "",
"remark": ""
},
"section_id": "",
"pipeline": {
"cables": "",
"voltage_value": "",
"pressure": "",
"buried_type": "",
"type": "输水管线",//管线类型
"material": "钢",//材质
"holes": "",
"used_holes": "",
"pipe_diameter": 400,//管径
"casing_size": "",
"construction_age": "",
"ownership_unit": "自来水公司",//权属单位
"the_road": "",
"remark": ""
},
"coordinate": {
"longitude": 120.591951531179,//经度
"latitude": 31.3408611027015,//纬度
"height": 2.2439896594733,//高度
"pitch_angle": 0,//俯仰角
"rolling_angle": 0,//翻滚角
"yaw_angle": 0,//偏航角
"distance": 9.84058130870205
},
"timestamp": "1547473753700"
}
],
"count": "56"
}
管点信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.asset_other",
"serviceName": "AssetOtherService",
"methodName": "Find",
"requestJson": "{\"category\":\"管点\",\"start\":起始行数,\"count\":本页数量,\"keyword\":\"\"}"
}
本页数量和起始行数换成数字.
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"info_array": [
{
"id": "0102014235330014.mesh",//模型ID
"name": "非饮用水管线弯头(预留)0014",//管点名称
"category": "管点",
"tunnel_id": "01",
"cabin_id": "01-02",
"section_id": "01-02-014",
"section": {
"id": "01-02-014",//分区id
"state": "",
"cabin_id": "01-02",
"cabin": {
"id": "01-02",
"state": "",
"tunnel_id": "01",
"tunnel": {
"id": "01",
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",
"name": "城北路干线管廊",
"code": "1",
"name_sample": "CBL",
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",
"connect": [],
"timestamp": "1547473729070"
},
"name": "水信舱",
"buried_type": "矩形",
"material": "砼",
"line_types": [
"电信电缆",
"输水管线",
"非饮用水管线"
],
"size_width": 2800,
"size_height": 4050,
"region_xys": "",
"region_color": "",
"remark": ""
},
"name": "ACU014",//分区名称
"mileage_begin": 4660,
"mileage_over": 5060,
"region_xys": "",
"region_color": "",
"remark": ""
},
"pipe_point": {
"feature": "弯头",//特征
"attachment": "无",//附属物
"type": "非饮用水管线",//管线类型
"remark": ""
},
"coordinate": {
"longitude": 120.591951531179,//经度
"latitude": 31.3408611027015,//纬度
"height": 2.2439896594733,//高度
"pitch_angle": 0,//俯仰角
"rolling_angle": 0,//翻滚角
"yaw_angle": 0,//偏航角
"distance": 9.84058130870205
},
"timestamp": "1547473756286"
}
],
"count": "56"
}
配控站信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.special",
"serviceName": "SpecialService",
"methodName": "Find",
"requestJson": "{\"count\":本页数量,\"start\":起始行数,\"type\":\"配控站\",\"keyword\":\"\"}"
}
本页数量和起始行数换成数字.
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"info_array": [
{
"id": "01PK013.mesh",//模型ID
"tunnel_id": "01",
"tunnel": {
"id": "01",//管廊ID
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",
"name": "城北路干线管廊",//管廊名称
"code": "1",
"name_sample": "CBL",
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",
"connect": [],
"timestamp": "1547473729070"
},
"name": "ACU013配控站",//配控站名称
"associated_area": [
"电力舱ACU013",
"水信舱ACU013",
"燃气舱ACU013",
"热力舱ACU013"
],
"mileage": "K4+460",//里程
"remark": "",
"coordinate": {
"longitude": 120.591951531179,//经度
"latitude": 31.3408611027015,//纬度
"height": 2.2439896594733,//高度
"pitch_angle": 0,//俯仰角
"rolling_angle": 0,//翻滚角
"yaw_angle": 0,//偏航角
"distance": 9.84058130870205
},
"type": "配控站",
"structure_id": "01-PK-013",//结构ID
"timestamp": "1547473771371"
}
],
"count": "33"
}
附属设施信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "a23f966a-4e10-4d51-9d08-38041302f09e",
"protoName": "infrastructure.asset",
"serviceName": "AssetService",
"methodName": "Find",
"requestJson": "{\"start\":起始行数,\"count\":本页数量,\"code\":[]}"
}
本页数量和起始行数换成数字,
code
可以放置多个位号用于筛选查询,例如code: ["CB_01", "CB_02"]
.
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"info_array": [
{
"id": "0805Z11DDBYCKZX001.mesh",//模型ID
"name": "电动百叶控制箱01",//设备名称
"code": "",//设备位号
"category": "分区",
"special_structure_id": "",//结构ID
"special_id": "",
"section_id": "08-05-Z11",
"section": {
"id": "08-05-Z11",//分区ID
"state": "",
"cabin_id": "08-05",
"cabin": {
"id": "08-05",
"state": "",
"tunnel_id": "08",
"tunnel": {
"id": "08",
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "支线管廊",
"name": "江宇路支线管廊",//所属管廊
"code": "8",
"name_sample": "JYL",
"address": "江苏省苏州市江宇路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "Z7K0+000",
"connect": [],
"timestamp": "1547473729127"
},
"name": "综合舱",//所属舱室(其他结构体)
"buried_type": "矩形",
"material": "砼",
"line_types": [
"电力电缆",
"电信电缆",
"输水管线"
],
"size_width": 3200,
"size_height": 3400,
"region_xys": "",
"region_color": "",
"remark": ""
},
"name": "ACUZ11",//所属分区
"mileage_begin": 0,
"mileage_over": 400,
"region_xys": "",
"region_color": "",
"remark": ""
},
"system_id": "3",
"system": {
"id": "3",
"parent_id": "",
"name": "供电系统",//专业系统
"mark": false
},
"scope": "综合舱ACUZ11",
"type": "电动百叶控制箱",
"type_pinyin": "diandongbaiyekongzhixiang",
"model": "",//规格型号
"state": "在用",//状态
"installation_date": "2018-01-09",//安装日期
"mileage": "",//里程
"brand": "",//品牌
"remark": "",
"is_import": true,
"related_mold_ids": [],
"other_properties": [],
"file_ids": [],
"is_corridor": true,
"coordinate": {
"longitude": 120.591951531179,//经度
"latitude": 31.3408611027015,//纬度
"height": 2.2439896594733,//高度
"pitch_angle": 0,//俯仰角
"rolling_angle": 0,//翻滚角
"yaw_angle": 0,//偏航角
"distance": 9.84058130870205
},
"timestamp": "1547635877041"
}
],
"count": "56"
}
测点信息
请求数据JSON:
{
"X-Secret-Key": null,
"X-Token": "c34daf16-0e77-48f2-b20f-1e698789c545",
"protoName": "infrastructure.detection_point",
"serviceName": "DetectionPointService",
"methodName": "SearchAssetDetectionPoints",
"requestJson": "{}"
}
返回数据type为Next时, json属性的格式(//注释
不能在JSON中使用, 此处只是为了说明!):
{
"list": [
{
"asset": {
"id": "0101005ZMKZX002.mesh",//模型名称
"name": "照明控制箱02",
"code": "CBL_ACU005_DLC02",
"category": "分区",
"special_structure_id": "",
"special_id": "",
"section_id": "01-01-005",
"section": {
"id": "01-01-005",
"state": "",
"cabin_id": "01-01",
"cabin": {
"id": "01-01",
"state": "",
"tunnel_id": "01",
"tunnel": {
"id": "01",
"state": "运营",
"project_id": "XM01",
"project": {
"id": "XM01",
"state": "正常",
"name": "城北路综合管廊",
"build_unit": "苏州城市地下综合管廊开发有限公司",
"design_unit": "中国市政工程华北设计研究总院有限公司",
"process_unit": "中国中铁上海工程局集团有限公司",
"process_start_timestamp": "1444838400000",
"process_over_timestamp": "1514563200000",
"address": "江苏省苏州市城北路",
"remark": "",
"region_color": "",
"region_xys": "",
"timestamp": "1547473724556"
},
"type": "干线管廊",
"name": "城北路干线管廊",
"code": "1",
"name_sample": "CBL",
"address": "江苏省苏州市城北路",
"process_over_timestamp": "1514563200000",
"operation_unit": "苏州城市地下综合管廊开发有限公司",
"operation_begin_timestamp": "1514563200000",
"contact_person": "陆工",
"contact_info": "13800138000",
"region_xys": "",
"region_color": "",
"remark": "",
"sectional_view_file_id": "",
"sectional_view_scale_multiple": 0,
"mileage_start": "K0+000",
"connect": [],
"timestamp": "1547473729070"
},
"name": "电力舱",
"buried_type": "矩形",
"material": "砼",
"line_types": [
"电力电缆"
],
"size_width": 2400,
"size_height": 4050,
"region_xys": "",
"region_color": "",
"remark": ""
},
"name": "ACU005",
"mileage_begin": 1560,
"mileage_over": 1960,
"region_xys": "",
"region_color": "",
"remark": ""
},
"system_id": "4",
"system": {
"id": "4",
"parent_id": "",
"name": "照明系统",
"mark": false
},
"scope": "电力舱ACU005",
"type": "照明控制箱",
"type_pinyin": "zhaomingkongzhixiang",
"model": "",
"state": "在用",
"installation_date": "2018-01-09",
"mileage": "K1+760",
"brand": "",
"remark": "",
"is_import": true,
"related_mold_ids": [],
"other_properties": [],
"file_ids": [],
"is_corridor": true,
"coordinate": {
"longitude": 120.56149688428152,
"latitude": 31.345515559697045,
"height": -3.1863841768354177,
"pitch_angle": 0,
"rolling_angle": 0,
"yaw_angle": 0,
"distance": 1.5484677064773353
},
"detection_state": {
"id": "",
"asset_id": "0101005ZMKZX002.mesh",
"ts": "1547691359651",
"alarm_level": -1,
"fault_status": -1,
"run_status": -1,
"special_status": ""
},
"timestamp": "1547635575294"
},
"detection_points": [
{
"id": "CBL_ACU005_DLC02_NoAnswer",//测点编号
"state": "正常",
"asset_ids": [
"0101005ZMKZX002.mesh"
],
"type": "",
"name": "照明启停超时",//点位名称
"unit": "",//单位
"expression_text": "x=0:正常;x=1:超时",//值转文字公式
"virtual_rule": "0||1",
"virtual_interval": 2000,
"expression_alarm": "",
"expression_fault": "",
"expression_run": "",
"expression_special": "",
"control_start_condition": "",
"control_start": "",
"control_stop_condition": "",
"control_stop": "",
"follow_info_array": [],
"assets": []
}
]
}
]
}