index.js 2.82 KB
import req from '@/api/http.js'
const tourApi = {
	  getLiveAddress(params,config) {
        return req('get', `/patrol/patrolDeviceChannel/getLiveAddress/${params.id}`, params, config)
    },
		// 查询视频平台token
		getPatrolDeviceToken(params, config){
		  return req('GET', `/patrol/patrolDevice/token`, params, config)
		},
    getLiveInfo(params,config){
      return req('get', `/patrol/patrolDeviceChannel/getLiveInfo/${params.id}`, params, config)
    },
    // 截图
    getCapture(params,config) {
        return req('get', `/patrol/patrolDeviceChannel/capture/${params.id}`, params, config)
    },
    // 提交巡店记录
    submitPatrolRecord(params,config) {
        return req('post', `/patrol/patrolRecord`, params, config)
    },
    setBookmark(params,config) {
        return req('post', `/patrol/patrolGate/bookmark`, params, config)
    },
    delBookmark(params,config) {
        return req('post', `/patrol/patrolGate/unbookmark`, params, config)
    },
    // 获取监控点
    getPatrolGateList(params,config) {
        return req('get', `/patrol/patrolGate/list`, params, config)
    },
    uploadScreenshot(params,config){
      return req('post', `/patrol/b-patrol-screenshot`, params, config)
    },
	// 获取抓拍图
	getScreenshotList(params,config){
	  return req('GET', `/b-patrol-screenshot/list`, params, config)
	},
    // 巡店模板
    getPatrolTemplateListFun(params,config){
      return req('get', `/patrol/b-patrol-template/list`, params, config)
    },
    // 查询单个模板
    getPatrolTemplateOne(params,config){
      return req('get', `/patrol/b-patrol-template/${params.id}`, params, config)
    },
    getPatrolSopTypeTree(params,config) {
        return req('get', `/patrol/patrolSopType/tree`, params, config)
    },
    getUsers(params,config) {
        return req('get', `/patrol/s-user/mall/${params.mallId}`)
    },
    //提交巡店记录
    confirmPatrolRecord(params,config) {
        return req('post', `/patrol/patrolRecord`, params, config)
    },
		// 获取通道的视频直播与回放地址
		getLiveAndPlaybackAddress(params, config){
		  return req('GET', `/patrol/patrolDeviceChannel/getLiveAndPlaybackAddress`, params, config)
		},
	// 云控制
	ptzStart(params,config) {
	    return req('PUT', `/patrol/patrolDeviceChannel/ptzStart`, params, config)
	},
	ptzStop(params,config) {
	    return req('PUT', `/patrol/patrolDeviceChannel/ptzStop`, params, config)
	},
	// 获取设备录像记录
	getThroughVideoRecord(params, config){
	  return req('GET', `/patrol/patrolDeviceChannel/video/record`, params, config)
	},
	// 获取设备分组
	getDeviceGroupList(shopId) {
	  return req('GET', `/patrol/b-mall-org/mall/${shopId}`);
	},
	// 修改监控场景
	editPatrolGate(params,config) {
	    return req('PUT', `/patrol/patrolGate/${params.id}`, params, config)
	},
}
export default tourApi;