/**
 * Copyright (c) 2022 雷掣 All rights reserved.
 *
 * https://www.lc_crm.com
 *
 * 版权所有，侵权必究！
 */

package io.renren.common.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface Constant {
    /**
     * 成功
     */
    int SUCCESS = 1;
    /**
     * 失败
     */
    int FAIL = 0;
    /**
     * 菜单根节点标识
     */
    Long MENU_ROOT = 0L;
    /**
     * 部门根节点标识
     */
    Long DEPT_ROOT = 0L;
    /**
     *  升序
     */
    String ASC = "asc";
    /**
     * 降序
     */
    String DESC = "desc";
    /**
     * 创建时间字段名
     */
    String CREATE_DATE = "create_date";

    /**
     * 数据权限过滤
     */
    String SQL_FILTER = "sqlFilter";
    /**
     * 当前页码
     */
    String PAGE = "page";
    /**
     * 每页显示记录数
     */
    String LIMIT = "limit";
    /**
     * 排序字段
     */
    String ORDER_FIELD = "orderField";
    /**
     * 排序方式
     */
    String ORDER = "order";
    /**
     * token header
     */
    String TOKEN_HEADER = "token";

    /**
     * 云存储配置KEY
     */
    String CLOUD_STORAGE_CONFIG_KEY = "CLOUD_STORAGE_CONFIG_KEY";
    
    /**
	 * 轮询key
	 */
    String POS_KEY = "ROUND_ROBIN_COMPANY_POS_";
    
	/**
	 * 落地城市对应公司list Key
	 */
	String SCOPE_CITY_KEY = "SCOPE_CITY_LIST_";
	
	/**
	 * 公司已分配人数
	 */
	String COMPANY_COUNT_KEY = "COMPANY_USER_COUNT_";
    /**
     * 不做推送
     */
    String LOCAL_SYSTEM = "localhost";

    /**
     * 状态
     */
    enum Status {
        /**
         * 停用、禁用、无效
         */
    	DISABLE(0),
        /**
         * 正常、启用、有效
         */
    	ENABLE(1);

        private int value;

        Status(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 定时任务状态
     */
    enum ScheduleStatus {
        /**
         * 暂停
         */
        PAUSE(0),
        /**
         * 正常
         */
        NORMAL(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 推送状态
     */
    enum PushStatus {
    	/**
    	 * 已推送
    	 */
    	ALREADY_PUSH(1),
    	/**
    	 * 未推送
    	 */
    	UN_PUSH(0);
    	
    	private int value;
    	
    	PushStatus(int value) {
    		this.value = value;
    	}
    	
    	public int getValue() {
    		return value;
    	}
    }


    public static final Map<String, String> VisitMap = new HashMap<String, String>() {
        {
            put("0","un_visit");	//未回访
            put("1","form");//表单提交
            put("2","phone");//电话拨打
            put("3","phone_confirm");//智能电话-确认拨打
            put("4","phone_connect");//智能电话-确认接通
            put("5","phone_effective");//智能电话-有效接通
            put("6","consult_effective");//有效咨询
            put("7","customer_effective");//有效获客
            put("8","active");//激活
            put("9","active_register");//注册
            put("10","active_pay");//付费
            put("11","in_app_order");//app内下单
            put("12","in_app_uv");//app内访问
            put("13","in_app_cart");//app内添加购物车
            put("14","in_app_pay");//app内付费
            put("15","game_addiction");//关键行为
            put("16","coupon");//卡券领取
            put("17","in_app_detail_uv");//app内详情页到站uv
            put("18","next_day_open");//次留
            put("19","page_view");//访问目标页面
            put("20","shopping");//商品购买
            put("21","wechat");//微信复制
            put("22","other");//其他
            put("23","multiple");//多转化
            put("24","loan_completion");//完件
            put("25","pre_loan_credit");//预授信
            put("26","loan_credit");//授信
            put("27","idcard_information");//身份证信息填写完成
            put("28","bankcard_information");//银行卡信息填写完成
            put("29","personal_information");//补充个人信息填写完成
            put("30","certification_information");//用户活体认证信息上传完成
            put("31","lt_roi");//广告变现ROI
            put("32","loan");//放款
            put("33","authorization");//授权
            put("34","consult_clue");//留资咨询
            put("35","stay_time");//店铺停留
            put("36","purchase_roi");//付费ROI
            put("37","notify_download");//预约下载
            put("38","premium_payment");//保险支付
            put("39","ug_roi");//ROI三目标
            put("40","in_wechat_login");//微信内注册
            put("41","in_wechat_pay");//微信内付费
            put("42","clue_confirm");//回访_信息确认
            put("43","clue_interflow");//回访_加为好友
            put("44","clue_high_intention");//回访_高潜成交
            put("45","submit_certification");//提交认证
            put("46","identification");//身份认证
            put("47","first_order");//首次完单（司机）
            put("48","first_rental_order");//首次发单（乘客）
            put("49","rental_order_finish");//完成订单（乘客）
            put("50","clue_pay_succeed");//支付_存在意向
            put("51","retention_14d");//14日留存
            put("52","retention_30d");//30日留存
            put("53","retention_2d");//2日留存
            put("54","retention_3d");//3日留存
            put("55","retention_4d");//4日留存
            put("56","retention_5d");//5日留存
            put("57","retention_6d");//6日留存
            put("58","retention_7d");//7日留存
            put("59","premium_ROI");//保费ROI
            put("60","ltv0");//ltv0
            put("61","arrival_lead");//到店线索（汽车）
            put("62","failed_lead");//战败线索（汽车）
            put("63","first_class");//到课
            put("64","finish_class");//完课
            put("65","conversion_class");//正价课购买
            put("66","add_teacher");//添加老师
            put("67","in_app_next_day_open");//拉活次留
            put("68","withdraw_insurance");//短期退保
            put("69","open_account");//开户
            put("70","impression");//激活首日广告展示
            put("71","ipu_qualify");//首日广告展示达标
            put("72","lu_click");//LU页面二跳点击
            put("73","lu_convert");//LU页面二跳转化
            put("74","withdraw_m2");//M2内退保
            put("75","lu_cost");//LU搜索广告主消耗
            put("76","low_loan_credit");//次级授信
            put("77","high_loan_credit");//高价值授信
            put("78","unfollow_in_wechat");//微信取关
            put("79","clue_detail_plan");//线索-购买方案详谈
            put("80","clue_formal_order");//线索-正式成单
            put("81","lu_show");//LU页面二跳show
            put("82","in_app_order_7d");//app内7日下单
            put("83","key_action20");//关键行为衍生事件二十
            put("84","key_action19");//关键行为衍生事件十九
            put("85","key_action18");//关键行为衍生事件十八
            put("86","key_action17");//关键行为衍生事件十七
            put("87","key_action16");//关键行为衍生事件十六
            put("88","key_action15");//关键行为衍生事件十五
            put("89","key_action14");//关键行为衍生事件十四
            put("90","key_action13");//关键行为衍生事件十三
            put("91","key_action12");//关键行为衍生事件十二
            put("92","key_action11");//关键行为衍生事件十一
            put("93","key_action10");//关键行为衍生事件十
            put("94","key_action9");//关键行为衍生事件九
            put("95","key_action8");//关键行为衍生事件八
            put("96","key_action7");//关键行为衍生事件七
            put("97","key_action6");//关键行为衍生事件六
            put("98","key_action5");//关键行为衍生事件五
            put("99","key_action4");//关键行为衍生事件四
            put("100","key_action3");//关键行为衍生事件三
            put("101","key_action2");//关键行为衍生事件二
            put("102","key_action1");//关键行为衍生事件一
            put("103","clue_order_again");//线索_续费成单
            put("104","purchase_roi_2d");//付费ROI-2日
            put("105","purchase_roi_7d");//付费ROI-7日
            put("106","in_app_retention_30d");//拉活30日留存
            put("107","in_app_retention_28d");//拉活28日留存
            put("108","in_app_retention_14d");//拉活14日留存
            put("109","in_app_retention_7d");//拉活7日留存
            put("110","in_app_retention_6d");//拉活6日留存
            put("111","in_app_retention_5d");//拉活5日留存
            put("112","in_app_retention_4d");//拉活4日留存
            put("113","in_app_retention_3d");//拉活3日留存
            put("114","in_app_retention_2d");//拉活2日留存
            put("115","order_refund");//退款数据流
            put("116","premium_upgrade");//保险升级
            put("117","arpu0");//arpu门槛
            put("118","button_click");//按钮点击
            put("119","wechat_qrcode_show");//微信_二维码展示
            put("120","wechat_qrcode_try");//微信_长按二维码
            put("121","work_wechat_added");//微信_添加企业微信
            put("122","work_wechat_dialog");//微信_用户首次消息
            put("123","work_wechat_confirm");//微信_用户确认意向
            put("124","first_pay");//首购
            put("125","supply_active_pay");//付费-新
            put("126","retention_days");//留存天数
            put("127","link_active");//评论区链接激活
            put("128","micro_game_ltv");//小程序广告变现ltv
            put("129","work_wechat_unfriend");//企业微信_取消好友
            put("130","im_reply");//智能客服_系统回复
            put("131","im_dialog");//智能客服_用户开口
            put("132","im_arouse");//智能客服_唤起
            put("133","is_risk_user");//是否风险用户
            put("134","is_low_quality_user");//是否低质用户
            put("135","groot_habitat_donate_confirm");//抖音自然捐赠确认
            put("136","supply_active");//激活-新
            put("137","certified_pay");//认证支付
            put("138","information_check");//信息验真
            put("139","password_acquisition");//口令获客
            put("140","password_send");//发送口令
            put("141","successful_pay");//支付成功
            put("142","intention_pay");//支付意向
            put("143","action_pay");//支付行动
            put("144","wechat_delete");//微信_删除好友
            put("145","csj_agg_lp");//穿山甲聚合页消耗
            put("146","groot_ocean_game_view");//groot开始游戏
            put("147","groot_ocean_game_lottery_click");//开始抽奖
        }
    };

    /**
     * 字节回传状态
     */
    enum VisitStatus {

        /**
         *未回访
         */
        UN_VISIT(0),
        FORM(1),										//表单提交
        PHONE(2),                                       //电话拨打
        PHONE_CONFIRM(3),                               //智能电话-确认拨打
        PHONE_CONNECT(4),                               //智能电话-确认接通
        PHONE_EFFECTIVE(5),                             //智能电话-有效接通
        CONSULT_EFFECTIVE(6),                           //有效咨询
        CUSTOMER_EFFECTIVE(7),                          //有效获客
        ACTIVE(8),                                      //激活
        ACTIVE_REGISTER(9),                             //注册
        ACTIVE_PAY(10),                                 //付费
        IN_APP_ORDER(11),                               //app内下单
        IN_APP_UV(12),                                  //app内访问
        IN_APP_CART(13),                                //app内添加购物车
        IN_APP_PAY(14),                                 //app内付费
        GAME_ADDICTION(15),                             //关键行为
        COUPON(16),                                     //卡券领取
        IN_APP_DETAIL_UV(17),                           //app内详情页到站uv
        NEXT_DAY_OPEN(18),                              //次留
        PAGE_VIEW(19),                                  //访问目标页面
        SHOPPING(20),                                   //商品购买
        WECHAT(21),                                     //微信复制
        OTHER(22),                                      //其他
        MULTIPLE(23),                                   //多转化
        LOAN_COMPLETION(24),                            //完件
        PRE_LOAN_CREDIT(25),                            //预授信
        LOAN_CREDIT(26),                                //授信
        IDCARD_INFORMATION(27),                         //身份证信息填写完成
        BANKCARD_INFORMATION(28),                       //银行卡信息填写完成
        PERSONAL_INFORMATION(29),                       //补充个人信息填写完成
        CERTIFICATION_INFORMATION(30),                  //用户活体认证信息上传完成
        LT_ROI(31),                                     //广告变现ROI
        LOAN(32),                                       //放款
        AUTHORIZATION(33),                              //授权
        CONSULT_CLUE(34),                               //留资咨询
        STAY_TIME(35),                                  //店铺停留
        PURCHASE_ROI(36),                               //付费ROI
        NOTIFY_DOWNLOAD(37),                            //预约下载
        PREMIUM_PAYMENT(38),                            //保险支付
        UG_ROI(39),                                     //ROI三目标
        IN_WECHAT_LOGIN(40),                            //微信内注册
        IN_WECHAT_PAY(41),                              //微信内付费
        CLUE_CONFIRM(42),                               //回访_信息确认
        CLUE_INTERFLOW(43),                             //回访_加为好友
        CLUE_HIGH_INTENTION(44),                        //回访_高潜成交
        SUBMIT_CERTIFICATION(45),                       //提交认证
        IDENTIFICATION(46),                             //身份认证
        FIRST_ORDER(47),                                //首次完单（司机）
        FIRST_RENTAL_ORDER(48),                         //首次发单（乘客）
        RENTAL_ORDER_FINISH(49),                        //完成订单（乘客）
        CLUE_PAY_SUCCEED(50),                           //支付_存在意向
        RETENTION_14D(51),                              //14日留存
        RETENTION_30D(52),                              //30日留存
        RETENTION_2D(53),                               //2日留存
        RETENTION_3D(54),                               //3日留存
        RETENTION_4D(55),                               //4日留存
        RETENTION_5D(56),                               //5日留存
        RETENTION_6D(57),                               //6日留存
        RETENTION_7D(58),                               //7日留存
        PREMIUM_ROI(59),                                //保费ROI
        LTV0(60),                                       //ltv0
        ARRIVAL_LEAD(61),                               //到店线索（汽车）
        FAILED_LEAD(62),                                //战败线索（汽车）
        FIRST_CLASS(63),                                //到课
        FINISH_CLASS(64),                               //完课
        CONVERSION_CLASS(65),                           //正价课购买
        ADD_TEACHER(66),                                //添加老师
        IN_APP_NEXT_DAY_OPEN(67),                       //拉活次留
        WITHDRAW_INSURANCE(68),                         //短期退保
        OPEN_ACCOUNT(69),                               //开户
        IMPRESSION(70),                                 //激活首日广告展示
        IPU_QUALIFY(71),                                //首日广告展示达标
        LU_CLICK(72),                                   //LU页面二跳点击
        LU_CONVERT(73),                                 //LU页面二跳转化
        WITHDRAW_M2(74),                                //M2内退保
        LU_COST(75),                                    //LU搜索广告主消耗
        LOW_LOAN_CREDIT(76),                            //次级授信
        HIGH_LOAN_CREDIT(77),                           //高价值授信
        UNFOLLOW_IN_WECHAT(78),                         //微信取关
        CLUE_DETAIL_PLAN(79),                           //线索-购买方案详谈
        CLUE_FORMAL_ORDER(80),                          //线索-正式成单
        LU_SHOW(81),                                    //LU页面二跳show
        IN_APP_ORDER_7D(82),                            //app内7日下单
        KEY_ACTION20(83),                               //关键行为衍生事件二十
        KEY_ACTION19(84),                               //关键行为衍生事件十九
        KEY_ACTION18(85),                               //关键行为衍生事件十八
        KEY_ACTION17(86),                               //关键行为衍生事件十七
        KEY_ACTION16(87),                               //关键行为衍生事件十六
        KEY_ACTION15(88),                               //关键行为衍生事件十五
        KEY_ACTION14(89),                               //关键行为衍生事件十四
        KEY_ACTION13(90),                               //关键行为衍生事件十三
        KEY_ACTION12(91),                               //关键行为衍生事件十二
        KEY_ACTION11(92),                               //关键行为衍生事件十一
        KEY_ACTION10(93),                               //关键行为衍生事件十
        KEY_ACTION9(94),                                //关键行为衍生事件九
        KEY_ACTION8(95),                                //关键行为衍生事件八
        KEY_ACTION7(96),                                //关键行为衍生事件七
        KEY_ACTION6(97),                                //关键行为衍生事件六
        KEY_ACTION5(98),                                //关键行为衍生事件五
        KEY_ACTION4(99),                                //关键行为衍生事件四
        KEY_ACTION3(100),                               //关键行为衍生事件三
        KEY_ACTION2(101),                               //关键行为衍生事件二
        KEY_ACTION1(102),                               //关键行为衍生事件一
        CLUE_ORDER_AGAIN(103),                          //线索_续费成单
        PURCHASE_ROI_2D(104),                           //付费ROI-2日
        PURCHASE_ROI_7D(105),                           //付费ROI-7日
        IN_APP_RETENTION_30D(106),                      //拉活30日留存
        IN_APP_RETENTION_28D(107),                      //拉活28日留存
        IN_APP_RETENTION_14D(108),                      //拉活14日留存
        IN_APP_RETENTION_7D(109),                       //拉活7日留存
        IN_APP_RETENTION_6D(110),                       //拉活6日留存
        IN_APP_RETENTION_5D(111),                       //拉活5日留存
        IN_APP_RETENTION_4D(112),                       //拉活4日留存
        IN_APP_RETENTION_3D(113),                       //拉活3日留存
        IN_APP_RETENTION_2D(114),                       //拉活2日留存
        ORDER_REFUND(115),                              //退款数据流
        PREMIUM_UPGRADE(116),                           //保险升级
        ARPU0(117),                                     //arpu门槛
        BUTTON_CLICK(118),                              //按钮点击
        WECHAT_QRCODE_SHOW(119),                        //微信_二维码展示
        WECHAT_QRCODE_TRY(120),                         //微信_长按二维码
        WORK_WECHAT_ADDED(121),                         //微信_添加企业微信
        WORK_WECHAT_DIALOG(122),                        //微信_用户首次消息
        WORK_WECHAT_CONFIRM(123),                       //微信_用户确认意向
        FIRST_PAY(124),                                 //首购
        SUPPLY_ACTIVE_PAY(125),                         //付费-新
        RETENTION_DAYS(126),                            //留存天数
        LINK_ACTIVE(127),                               //评论区链接激活
        MICRO_GAME_LTV(128),                            //小程序广告变现ltv
        WORK_WECHAT_UNFRIEND(129),                      //企业微信_取消好友
        IM_REPLY(130),                                  //智能客服_系统回复
        IM_DIALOG(131),                                 //智能客服_用户开口
        IM_AROUSE(132),                                 //智能客服_唤起
        IS_RISK_USER(133),                              //是否风险用户
        IS_LOW_QUALITY_USER(134),                       //是否低质用户
        GROOT_HABITAT_DONATE_CONFIRM(135),              //抖音自然捐赠确认
        SUPPLY_ACTIVE(136),                             //激活-新
        CERTIFIED_PAY(137),                             //认证支付
        INFORMATION_CHECK(138),                         //信息验真
        PASSWORD_ACQUISITION(139),                      //口令获客
        PASSWORD_SEND(140),                             //发送口令
        SUCCESSFUL_PAY(141),                            //支付成功
        INTENTION_PAY(142),                             //支付意向
        ACTION_PAY(143),                                //支付行动
        WECHAT_DELETE(144),                             //微信_删除好友
        CSJ_AGG_LP(145),                                //穿山甲聚合页消耗
        GROOT_OCEAN_GAME_VIEW(146),                     //groot开始游戏
        GROOT_OCEAN_GAME_LOTTERY_CLICK(147);            //开始抽奖

        private int value;

        VisitStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}