liuxiaolong
2019-05-06 3e0536f508aad49f743e7bfabca34e3980a1b6e2
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import {
  httpGET,
  httpPOST
} from './common/httpFetch'
 
/* 人员轨迹查询 */
/**
 * @description 人员轨迹查询
 * @param { string } reqMap
 */
export const getPersonnLocus = body => {
  return httpPOST('data/api-r/es/getPersonnLocus', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 * @description 获取平台设备列表
 * @param { string } start 开始条
 * @param { string } length 长度
 * @param { string } orgId  组织机构id
 * @param { string } condition 设备名称/设备id/设备位置 非必传
 */
export const getLocalDeviceList = body => {
  return httpGET('data/api-d/device/findPlatDeviceList', {
    body
  })
}
/**
 * @description 获取平台设备列表
 * @param { string } start 开始条
 * @param { string } length 长度
 * @param { string } orgId  组织机构id
 * @param { string } condition 设备名称/设备id/设备位置 非必传
 */
export const findByArea = body => {
  return httpGET('data/api-d/device/findByArea', {
    body
  })
}
/* 抓拍记录 */
/**
 * @description 设备抓拍记录
 * @param { string } reqMap
 */
export const getCameraRecord = body => {
  return httpPOST('data/api-r/es/cameraRecord', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/* 通过区域查找设备 */
/**
 * @description 通过区域查找设备
 * @param { string } condition  设备名称/设备位置
 * @param { string } orgId  组织机构id
 * @param { string } type  类型(MENU或其它)
 * @param { string } param  无用参数
 */
export const findAllDeviceByArea = body => {
  return httpGET('data/api-d/device/findAllDeviceByArea', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 * @description 通过图片路径查询轨迹
 * @param { string } reqMap  reqMap
 */
export const getPersonnLocusByJni = body => {
  return httpPOST('data/api-r/es/getPersonnLocusByJni', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 * @description 查询某个设备的报警记录
 * @param { string } reqMap  reqMap
 */
export const getcameraRecord = body => {
  return httpPOST('data/api-r/es/cameraRecord', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 * @description 给定条件查询设备报警数量
 * @param {Array} reqNumList  设备id
 */
export const queryCameraCount = body => {
  return httpPOST('data/api-r/dataBase/queryCameraCount', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 * @description 获取摄像机实时最新图片
 * @param {String} devId  设备id
 */
export const getDevSnapshot = body => {
  return httpPOST('/data/api-r/dev/getDevSnapshot', {
    body,
    header: {
      'Content-Type': 'application/json'
    }
  })
}