flowReport.js 2.72 KB
import req from '@/api/http.js'

// analysisReport 是定义顾客行为报表的接口
const flowReport = {
    /**
     * 特别抓拍记录列表
     */
    uniqueCaptureRecord(params, config) {
        return req('get', '/faceRecognitions/unique', params, config)
    },
    /**
     * 抓拍记录列表
     */
    captureRecord(params, config) {
        return req('get', '/faceRecognitions', params, config)
    },
    /**
     * 区域客流分时
     */
    zoneCustomerTimeShare(params, config) {
        return req('get', '/report/zoneCustomerTimeShare/zone', params, config)
    },
    /**
     * 区域客群
     */
    trafficAnalyze(params, config) {
        return req('get', '/report/trafficAnalyze/zone', params, config)
    },
    /**
     * 出入口/门店客群
     */
    faceAnalyzeSta(analysisLevel, params, config) {
        return req('get', `/report/faceAnalyzeSta/${analysisLevel}`, params, config)
    },
    /**
     * 新老顾客
     */
    mallDayFaceRecognitionStas(params, config) {
        return req('get', '/mallDayFaceRecognitionStas', params, config)
    },
    newAndRegularAnalysis(analysisLevel, params, config) {
        return req('get', `/newAndRegularAnalysis/${analysisLevel}`, params, config)
    },
    mallDayHistoryArriveCounts(analysisLevel, params) {
        return req('get', `/mallDayHistoryArriveCounts/${analysisLevel}`, params)
    },
    /**
     * 有效客流统计
     */
    mallDayEffective(params, config) {
        return req('get', `/mallDayFaceRecognitionStas/effective${params.level=='zone'?'/zone':''}`, params, config)
    },
    /**
     * 区域客流
     */
    faceDistribution(params, config) {
        return req('get', '/report/faceDistribution/gate', params, config)
    },
    /**
     * 客群分时
     */
    faceCountAnalyzeSta(analysisLevel, params, config) {
        return req('get', `/report/faceCountAnalyzeSta/${analysisLevel}`, params, config)
    },
    historyCapture(params, config) {
        return req('get', '/faceRecognitions/history', params, config)
    },
    lossCustomer(params, config) {
        return req('get', '/report/lossCustomer/mall', params, config)
    },
    //人员类型统计
    analyzeList(params, config) {
        return req('get', '/personType/analyze/list', params, config)
    },
    // 顾客店员趋势
    customTrend(params, config) {
        return req('get', '/d-mall-day-face-recognition-sta/trend', params, config)
    },
    customTrendHour(params, config) {
        return req('get', '/d-mall-hour-face-recognition-sta/trend', params, config)
    },
    // 顾客店员趋势导出
    customTrendExport(){
      return req('get', '/d-mall-day-face-recognition-sta/trend/export', params, config)
    }
    
}

export default flowReport;