package com.cool.store.constants;

/**
 * redis key 类
 * @author byd
 * @date 2021-03-11 14:55
 */
public class RedisConstant {

    public static final String TB_DISPLAY_HANDLE = "tb_display_handle_";
    /**
     * 新陈列审核
     */
    public static final String TB_DISPLAY_APPROVE = "tb_display_approve_";

    /**
     * 新陈列复核
     */
    public static final String TB_DISPLAY_RECHECK = "tb_display_recheck";

    /**
     * 新陈列三级审批
     */
    public static final String TB_DISPLAY_THIRD_APPROVE = "tb_display_third_approve";

    /**
     * 新陈列四级审批
     */
    public static final String TB_DISPLAY_FOUR_APPROVE = "tb_display_four_approve";

    /**
     * 新陈列五级审批
     */
    public static final String TB_DISPLAY_FIVE_APPROVE = "tb_display_five_approve";

    /**
     * 区域/组织同步锁key 点击同步锁key
     */
    public static final String REGION_SYNC_LOCK = "region_sync_lock_";

    /**
     * 问题工单key
     */
    public static final String QUESTION_TASK_LOCK = "question_task_lock_";

    /**
     * 店务工单key
     */
    public static final String STORE_WORK_QUESTION_TASK_LOCK = "store_work_question_task_lock_";

    /**
     * 企业同步key 有效拦截
     */
    public static final String EID_SYNC_EFFECTIVE = "eid_sync_effective_";

    /**
     * 通知key做为拦截
     */
    public static final String TASK_STAGE_NOTICE = "task_stage_notice_";

    public static final String TASK_DEL_FLAG = "task_del_flag_";



    /**
     * 系统内区域key
     */
    public static final String REGION_SYNC_ALL= "region_sync_all_";

    /**
     * 系统内区域key
     */
    public static final String STORE_SYNC_ALL= "store_sync_all_";

    /**
     * 企业广告配置信息key前缀
     */
    public static final String ADVERT_SETTING_PREFIX= "advert_setting_";

    /**
     * 企业广告配置信息value
     */
    public static final String ADVERT_SETTING_VALUE= "1";

    /**
     * 企业广告配置信息value
     */
    public static final String COOL_TOKEN_PREFIX= "cool_token_";

    /**
     * 用户企业token前缀
     */
    public static final String ACCESS_TOKEN_PREFIX ="access_token:";

    /**
     * refresh token
     */
    public static final String REFRESH_TOKEN_PREFIX ="refresh_token:";

    /**
     * 用户账号密码错误次数key
     */
    public static final String ERROR_PASSWORD_COUNT_KEY = "errorPasswordCount_{0}_{1}";

    /**
     * 未完成转码
     */
    public static final String VIDEO_NOT_COMPLETE_CACHE = "video_not_complete_cache";
    /**
     * 任务抓拍状态记录
     */
    public static final String CAPTURE_PICTURE_STATUS_PREFIX ="capture_picture_status:";

    /**
     * 视频转码回调
     */
    public static final String VIDEO_CALLBACK_CACHE = "video_callback_cache_";

    /**
     * 任务重新分配 防止重复提交
     */
    public static final String TASK_STORE_REALLOCATE = "task_store_reallocate_";

    /**
     * 是否返回区域对应门店权限redis控制key
     */
    public static final String SHOW_STORE_AUTH = "show_store_auth";

    /**
     * 是否返回区域对应门店权限redis控制key
     */
    public static final String FIRST_LOGIN = "first_login_";

    /**
     * 区域全路径名称缓存
     */
    public static final String REGION_ALL_NAME_CACHE = "region_all_name_cache_";

    /**
     * 获取菜单引导key
     */
    public static final String GUIDE_INFO = "guide_info_";

    /**
     * 组织架构模块是否第一次登录
     */
    public static final String OrgModuleFirstLogin = "OrgModuleFirstLogin:{0}:{1}";

    /**
     * 历史企业key
     */
    public static final String HISTORY_ENTERPRISE = "historyEnterprise";

    /**
     * 留资企业key
     */
    public static final String LEAVE_ENTERPRISE = "leaveEnterprise";

    /**
     * 留资开关
     */
    public static final String LEAVE_OPEN = "leaveOpen";

    /**
     * 工单分享key
     */
    public static final String QUESTION_SHARE_KEY = "question_share:{0}";

    /**
     * 企业配置信息
     */
    public static final String ENTERPRISE_CONFIG_KEY = "enterpriseConfig:{0}";

    public static final String ENTERPRISE_KEY = "enterpriseInfo:{0}";


    public static final String ENTERPRISE_DB_SERVER = "enterpriseDBServer:{0}";

    public static final String QUESTION_SETTING_CACHE_KEY = "questionSettingCacheKey:{0}";

    public static final String ENTERPRISE_SETTING_CACHE_KEY = "enterpriseSettingCacheKey:{0}";

    public static final String ENTERPRISE_STORE_SETTING_CACHE_KEY = "enterpriseStoreSettingCacheKey:{0}";

    public static final String QUESTION_CACHE_KEY = "questionDataCache:{0}:{1}:{2}_{3}";


    public static final String QUESTION_NOTICE_KEY = "questionNoticeCache:{0}:{1}:{2}:{3}_{4}_{5}_{6}";

    public static final String STOREWORK_NOTICE_KEY = "storeWorkNoticeCache:{0}:{1}:{2}:{3}";

    /**
     * 冷静期内是否首次登录 冷静期首次登录 是-true  否-false
     */
    public static final String COOLINGPERIOD_FIRSTLOGIN_KEY = "coolingPeriodFirstLoginCache:{0}";

    /**
     * 七天
     */
    public static final int SEVEN_DAY = 7 * 24 * 60 * 60;

    /**
     * 1天
     */
    public static final int ONE_DAY_SECONDS = 24 * 60 * 60;

    /**
     * 3天
     */
    public static final int THREE_DAY = 3 * 24 * 60 * 60 * 1000;

    public static final String UPCOMING_BACKLOG_ID = "upcoming_backlog:{0}:{1}:{2}";


    public static final String ENTERPRISE_OPEN_STATUS_KEY = "enterprise_open_status:{0}_{1}";

    public static final String PARTNER_BASEINFO_CACHE_KEY = "partnerBaseInfoCache:{0}:{1}";

    public static final String PARTNER_CLERKINFO_CACHE_KEY = "partnerClerkInfoCache:{0}:{1}";

    public static final String PARTNER_INTENTINFO_CACHE_KEY = "partnerIntentInfoCache:{0}:{1}";

    public static final String PARTNER_WANTSHOPINFO_CACHE_KEY = "partnerWantShopInfoCache:{0}:{1}";

    public static final String PARTNER_INDUSTRYCOGNITIONINFO_CACHE_KEY = "partnerIndustryCognitionInfoCache:{0}:{1}";


    public static final String DEVICE_OPEN_TOKEN = "device_open_token:{0}:{1}:{2}";

    public static final String PHONE_NUMBER= "phone_number_";

    /**
     * MDM 省市区数据缓存
     */

    /**
     * 省级数据缓存
     */
    public static final String MDM_AREA_PROVINCE = "mdm:area:province";

    /**
     * 其他区域数据缓存
     */
    public static final String MDM_AREA_OTHERS = "mdm:area:others:{0}";

    /**
     * MDM 所属大区缓存
     */
    public static final String MDM_BELONG_REGION = "mdm:belongRegion";

    /**
     * MDM 业务区域缓存
     */
    public static final String MDM_BUSINESS_REGION = "mdm:businessRegion";

    /**
     * 动态标题
     */
    public static final String CONTENT_TITLES = "content:titles";

    /**
     * 用户预约面试锁
     */
    public static final String PARTNER_APPOINTMENT_LOCK = "partner:appointment:lock:{0}";

    /**
     * 用户意向区域key
     */
    public static final String USER_WANT_AREA_CACHE = "user_want_area_cache_";

    /**
     * 招商经理轮询key
     */
    public static final String INVESTMENT_MANAGER_CACHE = "investment_manager_cache_";

    /**
     * 招商经理轮询key
     */
    public static final String YUN_XUE_TANG_ACCESS_TOKEN = "yun_xue_tang_access_token_";
}
