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 String REDIS_KEY_PREFIX = "daily_id:{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_";

    public static final String SUBMIT_BUILD_KEY = "submit_build_key_";

    public static final String GET_AI_MODULE = "get_ai_module_";

    public static final String HUOMA_STORE_DEVICE_RESOURCE_KEY = "huoma_store_device_resource";

    public static final String HUO_MA_STORE_ID = "huo_ma_store_id";

    public static final String HUO_MA_TOKEN= "huo_ma_token:{0}";

    public static final String BIG_REGION_EMAIL = "big_region_email";

    /**
     * 招商大区老总邮箱
     */
    public static final String INVEST_BIG_REGION_EMAIL = "invest_big_region_email";

    /**
     * 钱包开通失败/打标失败原因 wallet_open_fail:storeId:1/2 1平安/2网商
     */
    public static final String WALLET_OPEN_FAIL = "wallet_open_fail:{0}:{1}";

    /**
     * 打标接口创建网商账户失败标识 wallet_online_bank_tag_fail:storeId
     */
    public static final String WALLET_ONLINE_BANK_TAG_FAIL = "wallet_online_bank_tag_fail:{0}";

    /**
     * 网商账户是否已激活
     */
    public static final String WALLET_ONLINE_BANK_ACTIVATED = "wallet_online_bank_activated:{0}";

    /**
     * 闭店退款申请人
     */
    public static final String CLOSE_STORE_REFUND_SUBMIT_USER = "zxjp_refund_submit_user";

    /**
     * 闭店账号初始化
     */
    public static final String CLOSE_STORE_ACCOUNT_INIT = "zxjp_close_store_account";

    /**
     * 闭店资料初始化
     */
    public static final String CLOSE_STORE_FILE_INIT = "zxjp_close_store_file";

    /**
     * 闭店资料模板
     */
    public static final String CLOSE_STORE_FILE_TEMPLATE = "zxjp_close_store_file_template";

    /**
     * 每刻退款用户信息
     */
    public static final String MK_USER_MAPPING = "zxjp_mk_user_mapping";

    /**
     * 建店资料总部订货收款账户信息
     */
    public static final String BUILD_RECEIVE_BANK_INFO = "zxjp_build_receive_bank_info";

    /**
     * 加盟线下收款银行默认配置
     */
    public static final String PAYEE_BANK_CONFIG_DEFAULT = "payee_bank_config_default";

    /**
     * 十二分导入锁
     */
    public static final String TP_PENALTY_APPLY_IMPORT_LOCK = "tp_penalty_apply_import_lock";

    /**
     * 十二分审批按钮权限id
     */
    public static final String TP_AUDIT_AUTH_MENU_ID = "tp_audit_auth_menu_id";


    public static final String STANDARD_STORE_PAY_LOCK_KEY = "standard_store_pay_lock_key:{0}";

    /**
     * 拜访记录导出锁
     */
    public static final String VISIT_RECORD_EXPORT_LOCK = "visit_record_export_lock";

    /**
     * 全部铺位导出锁
     */
    public static final String POINT_EXPORT_LOCK = "point_export_lock";

    /**
     * 我的铺位导出锁
     */
    public static final String MY_POINT_EXPORT_LOCK = "my_point_export_lock";

    /**
     * 十二分制积分流水导出锁
     */
    public static final String TP_SCORE_JOURNAL_EXPORT_LOCK = "tp_score_journal_export_lock";

    /**
     * 钱包分账公司配置-招商分部
     */
    public static final String WALLET_ALLOCATION_CONFIG_INVEST_DIVISION = "wallet_invest_allocation_id";

    /**
     * 钱包分账支付锁
     */
    public static final String WALLET_ALLOCATION_PAY_LOCK_KEY = "wallet_allocation_pay_lock_key:{0}";

    public static final String WALLET_TRANSFER_LOCK = "wallet_transfer_lock:{0}";

    public static final String WALLET_WITHDRAW_LOCK = "wallet_withdraw_lock:{0}";

    /**
     * 私域设备SN->绑定二维码地址
     */
    public static final String PRIVATE_SN_QR_CODE = "private_sphere_qr";

    /**
     * 私域设备SN->门店id
     */
    public static final String PRIVATE_STORE_SN_BIND = "private_sphere_store_sn";

    /**
     * 私域设备SN->门店私域二维码地址
     */
    public static final String PRIVATE_STORE_SN_QR_CODE = "private_sphere_store_sn_qr_code";

    /**
     * IP限制key
     */
    public static final String IP_LIMIT = "ip_limit";

    /**
     * 新管家缴费回调完成 标识
     */
    public static final String XGJ_CALLBACK_SHOP = "xgj_callback_shop:{0}";


    /**
     * 预分账单 分账key
     */
    public static final String PRE_ALLOCATION = "pre_allocation:{0}";

    public static final String STORE_ID_MAPPING = "store_id_mapping";
}
