index.js 1.75 KB
import req from '@/api/http.js'
const tourApi = {
	  getLiveAddress(params,config) {
        return req('get', `/patrol/patrolDeviceChannel/getLiveAddress/${params.id}`, 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)
    },
    // 巡店模板
    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)
    },
}
export default tourApi;