监控系统移动端接口文档

Welcome use !

监控系统移动端接口文档

登陆

1
2
3
4
5
url:/api/doLogin
params:
loginName // 必须
password // 必须
result:
1
2
3
4
成功:
{"data":[{"page_size":50,"birthday":null,"role_id":110,"last_login_time":"2013-03-20 10:48:08","tel":null,"login_times":1,"unit_id":4,"last_login_ip":"192.168.0.103","password":"098f6bcd4621d373cade4e832627b4f6","username":"test","email":null,"address":null,"account":"test","gender":9,"user_id":7,"mobile":"13518744157"}],"code":200,"msg":"成功"}
失败:
{"data":null,"code":400,"msg":"用户名密码错误"}

信息处理

1
2
3
4
5
6
7
8
url:/api/infoProcess
params:
userId // 必须
ids // 必须 "1,2,3,4"
result // 必须 "处理结果内容"
status // 必须 有效信息:2 误报信息:3
result:
{"data":null,"code":200,"msg":"成功"}

意见反馈

1
2
3
4
5
6
7
url:/api/feedback
params:
userId // 必须
userName // 必须
content // 必须 "意见内容"
result:
{"data":null,"code":200,"msg":"成功"}

检查版本

1
2
3
4
5
6
url:/api/checkVersionForAndroid
params:
v // 必须
result:
说明:code 1有更新 0无更新
{"data":null,"downloadUrl":"http://115.28.224.10/lianzhong/android/维宝1.1.apk","code":1,"msg":"有新版本,请及时更新"}

信息列表

1
2
3
4
5
6
7
url:/api/infoList
params:
page // 必须 1 2 3
rows // 必须 10 20
unitId // 非必须 用户所属联网单位Id 如果是管理员传空字符串
infoFlag // 必须 |报警信息类型(火警:01 故障:02 其他:04)
result:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"data": [
{
"contactor": null,
"info_content": "-2",
"location": "传输装置",
"manager_tel1": "18213023309",
"tel": "0871-65527556",
"manager_tel2": "13708413005",
"legal_rep_name": "王晓根 0871-65412370",
"device_num": "0001001001000000",
"manager_name2": "黄少华 13708413005",
"channel_num": "",
"manager_name1": "闵学昆 18213023309",
"regulatory_level": "0",
"network_status": "1",
"transmission_num": 1,
"status_desc": "",
"higher_unit": 0,
"principal_idnum": "",
"reply_time": null,
"area_num": 1,
"principal_name": "黄少华 13708413005",
"alarm_time": "2015-11-23 06:54:50",
"control_manuf_id": 21,
"lower_unit": 0,
"unit_num": 1,
"status": "01",
"regionName": "五华区",
"org_code": "1",
"address_num": 0,
"transmission_id": 1,
"manager_idnum1": "",
"economic_type": "110",
"manager_idnum2": "",
"legal_rep_tel": "0871-65412370",
"network_date": "2013-03-06 00:00:00",
"center_process_result": null,
"end_time": null,
"postal_code": "650102",
"pos_y": 0,
"pos_x": 0,
"unit_plan": "upload/unit_plan_4_131203170151.jpg",
"region": "530102",
"control_type_id": 11,
"status_time": "1900-01-01 00:00:00",
"device_type": "67",
"loop_num": 0,
"center_operator": null,
"dvr_num": "",
"lng": 102.674972,
"unit_id": 4,
"legal_rep_idnum": "",
"facility_id": 5,
"info_flag": "01",
"principal_tel": "13708413005",
"lat": 25.083782,
"info_type": "01010100",
"info_id": 16572519,
"build_date": null,
"device_id": 1,
"reception_time": "2015-11-23 07:11:54",
"fixed_asset": 0.0,
"operator": 3,
"staff_num": 0,
"controlroom_tel": "65412370",
"address": "昆明市五华区王家桥(云冶生活区)",
"report_time": null,
"confirm_result": null,
"unit_type": "05",
"building_area": 0.0,
"unit_name": "云南云铜锌业经济适用住房",
"process_result": "误报",
"center_id": 1,
"bg_img": "",
"unit_outside_view": "upload/unit_outside_view_4_131203165420.jpg",
"space_area": 6.541237E+7
}
],
"code": 200,
"msg": "成功"
}

文章分页查询(企业网站使用)

1
2
3
4
5
6
url:/api/posts
params:
page // 非必须 1 2 3 默认1
rows // 非必须 10 20 默认10
postCategory // 非必须 文章类型 1:新闻 2:产品 默认2
result:

文章详情

1
url:/api/post/{id}

返回说明

1
2
3
4
5
6
7
8
9
10
11
12
13
public static final int success = 200;//成功
public static final int exception = 500;//服务器出错
public static final int error_loginNamePwd = 400;//用户名密码错误
public static final int error_nullParams = 401;//有null参数
public static final int success_hasNewVersion = 1;//
public static final int success_noNewVersion = 0;//
public static final String msg_success = "成功";
public static final String msg_exception = "服务器出错";
public static final String msg_error_loginNamePwd = "用户名密码错误";
public static final String msg_error_nullParams = "有null或者\"\"参数";
public static final String msg_hasNewVersion = "有新版本,请及时更新";
public static final String msg_noNewVersion = "没有新版本";

笔记:

(unit_name + area_num + loop_num + address_num + location)