flowReport.js 2.12 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, 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)
    }
}

export default flowReport;