package com.red.circle.common.business.core;


import com.red.circle.tool.core.date.ZonedDateTimeAsiaRiyadhUtils;

/**
 * redis缓存key.
 *
 * @author pengliang on 2021/1/19
 */
public interface ControllerRedisKeyConstant {

  /**
   * 用户关系计数器.
   */
  String SUPPORT_RELATIONSHIP_COUNTER = "SUPPORT_RELATIONSHIP_COUNTER";

  /**
   * 房间贡献总额.
   */
  String ROOM_CONTRIBUTION_TOTAL_V3 = "ROOM_C_TOTAL_V3";
  String ROOM_LEVEL = "ROOM_LEVEL";

  /**
   * 礼物墙.
   */
  String GIFT_WALL = "GIFT_WALL";

  /**
   * 我的加入列表.
   */
  String ROOM_JOINED_LIST = "ROOM_JOINED_LIST";

  /**
   * 房间关注.
   */
  String ROOM_FOLLOW_LIST = "ROOM_FOLLOW_LIST";

  /**
   * 国家列表缓存.
   */
  String COUNTRY = "COUNTRY";

  /**
   * 国家置顶.
   */
  String COUNTRY_TOP_SIX = "COUNTRY_TOP_SIX";

  /**
   * app国家列表.
   */
  String APP_COUNTRY_CODE = "APP_COUNTRY_CODE";

  /**
   * 道具商店.
   */
  String PROPS_STORE = "PROPS_STORE";

  /**
   * 房间游戏是否开启
   */
  String ROOM_SUD_LIST = "ROOM_SUD_LIST";

  /**
   * 获取主播每日统计标记key.
   */
  static String getAnchorStatisticsDailyMarkKey(Long userId) {
    return "D_" + userId + "_" + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt();
  }

  /**
   * 获取主播每月统计标记key.
   */
  static String getAnchorStatisticsMonthMarkKey(Long userId) {
    return "M_" + userId + "_" + ZonedDateTimeAsiaRiyadhUtils.nowFirstDayOfMonthToInt();
  }
}
