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'
|
}
|
})
|
}
|