All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.icc.passengerflow.constant.PassengerFlowConstant Maven / Gradle / Ivy

package com.dahuatech.icc.passengerflow.constant;

import com.dahuatech.hutool.core.util.StrUtil;
import com.dahuatech.hutool.log.Log;
import com.dahuatech.hutool.log.LogFactory;
import com.dahuatech.icc.oauth.profile.IccProfile;

/**
 * program:java-sdk
 *
 * Author: 355079
 * Date:2022-08-08 10:41
 * Description: 客流子系统常量类
 */
public class PassengerFlowConstant {
    /** 模块名称 */
    public static final String SYSTEM_NAME = "evo-passengerflow";

    /** 查询在场人员信息 */
    public static final String PRESENCE_PERSON_PAGE="/evo-apigw/evo-passengerflow/1.0.0/statistics/presencePerson/page";
    /** 过人记录 */
    public static final String INANDOUT_RECORD_PAGE="/evo-apigw/evo-passengerflow/1.0.0/statistics/inAndOutRecord/page";

    /** 获取区域类别 */
    public static final String REGION_LABEL_PAGE="/evo-apigw/evo-passengerflow/1.0.0/region/label/page";
    /** 获取自定义标签列表 */
    public static final String CUSTOMER_LABEL_ALL="/evo-apigw/evo-passengerflow/1.0.0/customer/label/all";

    /** 区域配置列表 */
    public static final String REGION_CONFIG_PAGE="/evo-apigw/evo-passengerflow/1.0.0/statistics/regionConfig/page";
    /** 获取所有商铺 */
    public static final String GET_ALL_SHOP="/evo-apigw/evo-passengerflow/1.0.0/statistics/regionConfig/getAllShop";

    /** 实时人数统计时报表 */
    public static final String REALTIME_REPORT_CHART_HOUR="/evo-apigw/evo-passengerflow/1.0.0/statistics/realTimeReport/chart/hour";
    /** 进出人数统计时报表 */
    public static final String INANDOUT_REPORT_CHART_HOUR="/evo-apigw/evo-passengerflow/1.0.0/statistics/inAndOutReport/chart/hour";
    /** 进出人数统计日报表 */
    public static final String INANDOUT_REPORT_CHART_DAY="/evo-apigw/evo-passengerflow/1.0.0/statistics/inAndOutReport/chart/day";
    /** 进出人数统计月报表 */
    public static final String INANDOUT_REPORT_CHART_MONTH="/evo-apigw/evo-passengerflow/1.0.0/statistics/inAndOutReport/chart/month";
    /** 进出人数统计年报表 */
    public static final String INANDOUT_REPORT_CHART_YEAR="/evo-apigw/evo-passengerflow/1.0.0/statistics/inAndOutReport/chart/year";
    /** 分布分析(日周月年)报分页查询 */
    public static final String REGION_REPORT_DISTRIBUTION="/evo-apigw/evo-passengerflow/1.0.0/region/report/distribution";
    /** 排行分析(日周月年)报查询 */
    public static final String REGION_REPORT_RANK="/evo-apigw/evo-passengerflow/1.0.0/region/report/rank";
    /** 滞留分析查询 */
    public static final String REGION_REPORT_RETENTION="/evo-apigw/evo-passengerflow/1.0.0/region/report/retention";
    /** 分析报告(日报)查询接口 */
    public static final String REGION_REPORT_ANALYSE_DAY="/evo-apigw/evo-passengerflow/1.0.0/region/report/analyse/day";
    /** 分析报告(周,月,年)查询接口 */
    public static final String REGION_REPORT_ANALYSE="/evo-apigw/evo-passengerflow/1.0.0/region/report/analyse";

    /** 客户画像统计 */
    public static final String GET_CUSTOMER_IMAGE="/evo-apigw/evo-passengerflow/1.0.0/statistics/customerQuery/getCustomerImage";

    private static final Log logger = LogFactory.get();
    /** 非必填 */
    public static String version = "1.0.0/";

    private static boolean initVersionFromBrm = Boolean.FALSE;

    public static String url(String url) {
        // 加载远程版本信息
        initVersion();
        return String.format(IccProfile.URL_SCHEME + url, version);
    }

    public static String url(String url, Object rest) {
        // 加载远程版本信息
        initVersion();
        return StrUtil.format(String.format(IccProfile.URL_SCHEME + url, version), rest);
    }

    private static void initVersion() {
        if (!initVersionFromBrm && IccProfile.systemVersionMap.containsKey(SYSTEM_NAME)) {
            version = IccProfile.systemVersionMap.get(SYSTEM_NAME);
            initVersionFromBrm = true;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy