package com.fdkankan.redis.constant;

import java.util.concurrent.TimeUnit;

public class RedisKey {
    /**
     * 过期时间：1分钟
     */
    public static final int EXPIRE_TIME_1_MINUTE = 60;

    /**
     * 过期时间：5分钟
     */
    public static final int EXPIRE_TIME_5_MINUTE = 5*60;

    /**
     * 过期时间：10分钟
     */
    public static final int EXPIRE_TIME_10_MINUTE = 10*60;

    /**
     * 过期时间：30分钟
     */
    public static final int EXPIRE_TIME_30_MINUTE = 30*60;

    /**
     * 过期时间：2小时
     */
    public static final int EXPIRE_TIME_2_HOUR = 2*60*60;

    /**
     * 用户过期时间
     */
    public static final int USER_EXPIRE_TIME = 6*60*60;

    /**
     * 相机登陆7天有效期
     */
    public static final int CAMERA_EXPIRE_7_TIME = 7*24*60*60;

    public static final String SYSTEM_PREFIX = "4dkankan";

    /**
     * 登录token
     */
    public static String TOKEN_USER = "token:type:%s:name:%s";

    /**
     * ssouser key
     */
    public static String SSO_USER = "sso_user:name:%s";
    /**
     * 开发者信息
     */
    public static String TM_DEVELOPER = "developer:appid:%s";

    /**
     * 场景浏览量
     */
    public static String SCENE_VISIT_CNT = "scene:visit:cnt";


    /**
     * 场景码池
     */
    public static String FDKANKAN_SCENE_NUMS = "4dkankan:scene:nums";


    public static final String SCENE_BUILDING = SYSTEM_PREFIX+":scene:building:%s";

    /**
     * 场景下载进度
     */
    // TODO: 2022/3/29  这个是V3版本使用的key，V4版本稳定后，这个要删除
    public static final String PREFIX_DOWNLOAD_PROGRESS="downloads:progress:%s";

    /**
     * 场景下载进度
     */
    public static final String PREFIX_DOWNLOAD_PROGRESS_V4="downloads:progress:v4:%s";

    /**
     * 即将要下载场景的场景码列表
     */
    public static final String DOWNLOAD_TASK="downloads:task";

    /**
     * 正在下载的场景码列表
     */
    public static final String SCENE_DOWNLOAD_ING="scene:downloads:ing";

    /**
     * 正在下载的场景码列表
     */
    public static final String SCENE_V3_DOWNLOAD_ING="scene:v3:downloads:ing";

    /**
     * scenejson缓存
     */
    public static final String SCENE_JSON = "scenejson:num:%s";

    /**
     * 场景热点hash列表
     */
    public static final String SCENE_HOT_DATA = "scene:hotdata:num:%s";

    /**
     * 热点icons数据列表
     */
    public static final String SCENE_HOT_ICONS = "scene:hoticons:num:%s";

    /**
     * 场景关联数据列表
     */
    public static final String SCENE_LINKPAN_DATA = "scene:LinkPan:num:%s";

    /**
     * 场景关联styles数据列表
     */
    public static final String SCENE_LINKPAN_STYLES = "scene:LinkPanStyles:num:%s";

    /**
     * 场景关联styles数据列表
     */
    public static final String SCENE_BILLBOARDS_STYLES = "scene:billboardsStyles:num:%s";

    /**
     * 场景指示牌数据列表
     */
    public static final String SCENE_BILLBOARDS = "scene:billboards:num:%s";

    public static final String SCENE_CUT_MODEL = "scene:cutmodel:num:%s";

    /**
     * 场景下载任务列表
     */
    public static final String SCENE_DOWNLOADS_TASK_V4 = "scene:downloads:task:v4";

    /**
     * 场景升级进度
     */
    public static final String scene_upgrade_progress_num = "scene:upgrade:progress:num:%s";

    /**
     * v3版本user类型token
     */
    public static final String TOKEN_V3 = "token#%s";

    /**
     * user类型token
     */
    public static final String USER_TOKEN_KEY = "token#%s";

    /**
     * 场景协作管理
     */
    public static final String SCENE_COOPERATION_NUM_USERID = "scene:cooperation:num:userId";


    /**
     * 管理后台key
     */
    public static final String  MANAGE_MENU ="manage_menu";
    public static final String  MANAGE_PERM_USER ="manage_perm_user:%s";
    public static final String  MANAGE_ROLE_USER ="manage_role_user:%s";

    /**
     * 马赛克列表
     */
    public static final String SCENE_MOSAIC_DATA = "scene:mosaic:num:%s";

    /**
     * 滤镜列表
     */
    public static final String SCENE_filter_DATA = "scene:filter:num:%s";

    /**
     * 场景资源清理，查询场景limit下标
     */
    public static final String SCENE_CLEAN_INDEX = "scene:clean:index";

    /**
     * 上传matterprodata状态
     */
    public static final String SCENE_UPLOAD_MATTERPRO_NUM= "scene:upload:matterpro:num";

    /**
     * 人体抠图任务id
     */
    public static final String SCENE_BODY_SEGMENT= "scene:body:segment:uuid:%s";

    /**
     * 场景oss原始资源目录删除
     */
    public static final String SCENE_OSS_HOME_DIR_DELETE= "scene:oss:home:dir:delete:unicode:%s";

    /**
     * 场景oss原始资源目录上传
     */
    public static final String SCENE_OSS_HOME_DIR_UPLOAD= "scene:oss:home:dir:upload:unicode:%s";

    /**
     * 场景oss原始资源目录上传
     */
    public static final String SCENE_BUILD_EXPECT_TOTAL_TIME_NUM= "scene:build:expect:total:time:num:%s";

    /**
     * 场景oss原始资源目录上传
     */
    public static final String SCENE_BUILD_FINISH_NUM = "scene:build:finish:num:%s";

    /**
     * 场景oss原始资源目录上传
     */
    public static final String SINGLE_MODELING_SERVER_BUSY = "singleModelingServerBusy";

    /**
     * 打点系统应用id缓存
     */
    public static final String TRACK_APPID = "track:appid";

    public static final String SCENE_DRAW = "scene:draw:num:%s";




}
