customer.js 3.46 KB
import req from '@/api/http.js'

// analysisReport 是定义顾客行为报表的接口
const customerReport = {
    /**
     * 区域热力报表
     */
    zoneHotMapReport(params, config) {
        return req('get', '/heatmap/zoneHotmap/mall', params, config)
    },
    /**
     * 顾客轨迹动线
     */
    movingLineReport(personUnid, params, config) {
        return req('get', `/report/movingLine/customerLine/${personUnid}`, params, config)
    },
    /**
     * 客流动线
     */
    flowMovingLineReport(params, config) {
        return req('get', '/report/movingLine/floor', params, config)
    },
    /**
     * 客流方向
     */
    faceMavingLineReport(params, config) {
        return req('get', '/report/movingLine/faceMavingLines', params, config)
    },
    /**
     * 单楼层
     */
    moveLineSimpleFloor(params, config) {
        return req('get', '/report/movingLine/floorMovingLine', params, config)
    },
    /**
     * 多楼层
     */
    moveLineMultipleFloor(params, config) {
        return req('get', '/report/movingLine/floorMovingLines', params, config)
    },
    /**
     * facepage
     */
    facePageReport(params, config) {
        return req('get', '/faceRecognitions/report/facePage/gate', params, config)
    },
    /**
     * 展台热力
     */
    trackHeatmapReport(channelId, params, config) {
        return req('get', `/heatmap/trackHeatmap/${channelId}`, params, config)
    },
    /**
     * 楼层热力
     */
    floorHeatmapReport(floorId, params, config) {
        return req('get', `/heatmap/floorHeatmap/${floorId}`, params, config)
    },
    /**
     * 开心指数
     */
    happyIndexReport(analysisLevel, params, config) {
        return req('get', `/report/happyIndex/${analysisLevel}`, params, config)
    },
    /**
     * 店内热力
     */
    inStoreHeatReport(params, config) {
        return req('get', '/heatmapDataRaws', params, config)
    },
    newinStoreHeatReport(params, config) {
        return req('post', '/heatMap/get', params, config)
    },
    /**
     * 滞留时间
     */
    residenceReport(params, config) {
        return req('get', `/report/residence/${params.level||'mall'}`, params, config)
    },
    /**
     * 动线分析
     */
    movingLineAnalysis(params, config) {
        return req('get', '/report/movingLine/customerLines', params, config)
    },
    movingLineAnalysisStore(params, config) {
        return req('get', '/track/trendStatistics', params, config)
    },
    movingRouteAnalysisStore(params, config) {
        return req('get', '/track/routeAnalysis', params, config)
    },
    /**
     * 通道抓拍 删除
     */
    channelSnapshot(analysisLevel, orgId, params, config) {
        return req('get', `/channelSnapshots/${analysisLevel}/${orgId}`, params, config)
    },
    /**
     * 点位热力
     */
    floorHeatmap(orgId, params, config) {
        return req('get', `/heatmap/floor/${orgId}`, params, config)
    },
    trafficHeatmap(analysisLevel, orgId, params, config) {
        return req('get', `/heatmap/${analysisLevel}/${orgId}`, params, config)
    },
    /**
     * 点位热力
     */
    heatmap(channelSerialnum, params, config) {
        return req('get', `/heatmap/${channelSerialnum}`, params, config)
    },
    heatmapDataRaw(params, config) {
        return req('get', '/heatmapDataRaws', params, config)
    },
    analysisSankey(params, config) {
        return req('get', '/report/faceAnalyze/sankey', params, config)
    }
}

export default customerReport;