content: package com.ld.poetry.constants;
  
  
  public class CommonConst {
  
      /**
       * 超级管理员的用户Id
       */
      public static final int ADMIN_USER_ID = 1;
  
      /**
       * 根据用户ID获取Token
       */
      public static final String USER_TOKEN = "user_token_";
  
      public static final String ADMIN_TOKEN = "admin_token_";
  
      /**
       * 根据用户ID获取Token
       */
      public static final String USER_TOKEN_INTERVAL = "user_token_interval_";
  
      public static final String ADMIN_TOKEN_INTERVAL = "admin_token_interval_";
  
      /**
       * Token
       */
      public static final String USER_ACCESS_TOKEN = "user_access_token_";
  
      public static final String ADMIN_ACCESS_TOKEN = "admin_access_token_";
  
      public static final String TOKEN_HEADER = "Authorization";
  
      /**
       * 保存次数
       */
      public static final String SAVE_COUNT_IP = "save_count_ip_";
      public static final String SAVE_COUNT_USER_ID = "save_count_user_id_";
      public static final long SAVE_EXPIRE = 86400;
      public static final int SAVE_MAX_COUNT = 15;
  
      /**
       * IP历史记录缓存
       */
      public static final String IP_HISTORY = "ip_history";
      public static final String IP_HISTORY_STATISTICS = "ip_history_statistics";
      public static final String IP_HISTORY_PROVINCE = "ip_history_province";
      public static final String IP_HISTORY_IP = "ip_history_ip";
      public static final String IP_HISTORY_HOUR = "ip_history_hour";
      public static final String IP_HISTORY_COUNT = "ip_history_count";
  
      /**
       * Token过期时间：10天
       */
      public static final long TOKEN_EXPIRE = 864000;
  
      /**
       * Code过期时间：1天
       */
      public static final long CODE_EXPIRE = 86400;
  
      /**
       * Token重设过期时间间隔：1小时
       */
      public static final long TOKEN_INTERVAL = 3600;
  
      /**
       * Boss信息
       */
      public static final String ADMIN = "admin";
  
      /**
       * BossFamily信息
       */
      public static final String ADMIN_FAMILY = "adminFamily";
  
      /**
       * FamilyList信息
       */
      public static final String FAMILY_LIST = "familyList";
  
      /**
       * 评论和IM邮件
       */
      public static final String COMMENT_IM_MAIL = "comment_im_mail_";
  
      /**
       * 验证码邮件
       */
      public static final String CODE_MAIL = "code_mail_";
  
      /**
       * 评论和IM邮件发送次数
       */
      public static final int COMMENT_IM_MAIL_COUNT = 1;
  
      /**
       * 验证码邮件发送次数
       */
      public static final int CODE_MAIL_COUNT = 3;
  
      /**
       * 验证码
       */
      public static final String USER_CODE = "user_code_";
  
      /**
       * 忘记密码时获取验证码用于找回密码
       */
      public static final String FORGET_PASSWORD = "forget_password_";
  
      /**
       * 网站信息
       */
      public static final String WEB_INFO = "webInfo";
  
      /**
       * 分类信息
       */
      public static final String SORT_INFO = "sortInfo";
  
      /**
       * 赞赏
       */
      public static final String ADMIRE = "admire";
  
      /**
       * 密钥
       */
      public static final String CRYPOTJS_KEY = "sarasarasarasara";
  
      /**
       * 根据用户ID获取用户信息
       */
      public static final String USER_CACHE = "user_";
  
      /**
       * 根据文章ID获取评论数量
       */
      public static final String COMMENT_COUNT_CACHE = "comment_count_";
  
      /**
       * 根据用户ID获取该用户所有文章ID
       */
      public static final String USER_ARTICLE_LIST = "user_article_list_";
  
      /**
       * 文章缓存，用于搜索
       */
      public static final String ARTICLE_LIST = "article_list";
  
      /**
       * 文章缓存，用于首页
       */
      public static final String SORT_ARTICLE_LIST = "sort_article_list";
  
      /**
       * 默认缓存过期时间
       */
      public static final long EXPIRE = 1800;
  
      /**
       * 树洞一次最多查询条数
       */
      public static final int TREE_HOLE_COUNT = 100;
  
      /**
       * 顶层评论ID
       */
      public static final int FIRST_COMMENT = 0;
  
      /**
       * 文章摘要默认字数
       */
      public static final int SUMMARY = 80;
  
      /**
       * 留言的源
       */
      public static final int TREE_HOLE_COMMENT_SOURCE = 0;
  
      /**
       * 资源类型
       */
      public static final String PATH_TYPE_GRAFFITI = "graffiti";
  
      public static final String PATH_TYPE_ARTICLE_PICTURE = "articlePicture";
  
      public static final String PATH_TYPE_USER_AVATAR = "userAvatar";
  
      public static final String PATH_TYPE_ARTICLE_COVER = "articleCover";
  
      public static final String PATH_TYPE_WEB_BACKGROUND_IMAGE = "webBackgroundImage";
  
      public static final String PATH_TYPE_WEB_AVATAR = "webAvatar";
  
      public static final String PATH_TYPE_RANDOM_AVATAR = "randomAvatar";
  
      public static final String PATH_TYPE_RANDOM_COVER = "randomCover";
  
      public static final String PATH_TYPE_COMMENT_PICTURE = "commentPicture";
  
      public static final String PATH_TYPE_INTERNET_MEME = "internetMeme";
  
      public static final String PATH_TYPE_IM_GROUP_AVATAR = "im/groupAvatar";
  
      public static final String PATH_TYPE_IM_GROUP_MESSAGE = "im/groupMessage";
  
      public static final String PATH_TYPE_IM_FRIEND_MESSAGE = "im/friendMessage";
  
      public static final String PATH_TYPE_FUNNY_URL = "funnyUrl";
  
      public static final String PATH_TYPE_FUNNY_COVER = "funnyCover";
  
      public static final String PATH_TYPE_FAVORITES_COVER = "favoritesCover";
  
      public static final String PATH_TYPE_LOVE_COVER = "love/bgCover";
  
      public static final String PATH_TYPE_LOVE_MAN = "love/manCover";
  
      public static final String PATH_TYPE_LOVE_WOMAN = "love/womanCover";
  
      public static final String PATH_TYPE_VIDEO_ARTICLE = "video/article";
  
      public static final String PATH_TYPE_ASSETS = "assets";
  
      /**
       * 资源聚合
       */
      public static final String RESOURCE_PATH_TYPE_FRIEND = "friendUrl";
      public static final String RESOURCE_PATH_TYPE_FUNNY = "funny";
      public static final String RESOURCE_PATH_TYPE_FAVORITES = "favorites";
      public static final String RESOURCE_PATH_TYPE_LOVE_PHOTO = "lovePhoto";
  
      /**
       * 微言
       */
      public static final String WEIYAN_TYPE_FRIEND = "friend";
  
      public static final String WEIYAN_TYPE_NEWS = "news";
  
      /**
       * 友情链接
       */
      public static final String DEFAULT_FRIEND = "\uD83E\uDD47友情链接";
  
      /**
       * 资源校验
       */
      public static final String RESOURCE_ARTICLE_DOC = "resource_article_doc";
  }
  