
package com.tmerclub.cloud.common.cache.constant;

/**
 * @author tmerclub
 * @date 2020/11/23
 */
public interface ProductCacheNames {

    /**
     * 前缀
     */
    String PRODUCT_PREFIX = "tmerclub_product:";

    /**
     * 用户端分类列表缓存key
     */
    String CATEGORY_INFO = PRODUCT_PREFIX + "category:info:";

    /**
     * 根据店铺id和上级id，获取分类列表缓存key
     */
    String CATEGORY_LIST_OF_SHOP = PRODUCT_PREFIX + "category:list_of_shop:";

    /**
     * 根据店铺id获取店铺签约的分类信息(包含签约分类的父分类)
     */
    String LIST_SIGNING_CATEGORY = PRODUCT_PREFIX + "category:list_signing_category:";

    /**
     * 根据店铺id和上级id，获取分类列表缓存key
     */
    String CATEGORY_RATE = PRODUCT_PREFIX + "category:category_rate:";

    /**
     * 分类下的属性列表缓存key
     */
    String ATTRS_BY_CATEGORY_KEY = PRODUCT_PREFIX + "attrs:category_list:";

    /**
     * 分类下的品牌列表缓存key
     */
    String BRAND_LIST_BY_CATEGORY = PRODUCT_PREFIX + "brand:list_by_category_id:";

    /**
     * 店铺签约的分类列表缓存key
     */
    String SIGNING_CATEGORY_BY_SHOP_KEY = PRODUCT_PREFIX + "category:list_by_shop_id:";

    /**
     * 购物车商品数量
     */
    String SHOP_CART_ITEM_COUNT = "shop_cart:count:";

    /**
     * spu信息缓存key
     */
    String SPU_KEY = PRODUCT_PREFIX + "spu:";

    /**
     * spu详情信息缓存key
     */
    String SPU_DETAIL_KEY = PRODUCT_PREFIX + "spu:detail:";

    /**
     * spu详情-活动信息缓存key
     */
    String SPU_ACTIVITY_KEY = PRODUCT_PREFIX + "spu:activity:";


    /**
     * 置顶品牌列表信息缓存key
     */
    String BRAND_TOP = PRODUCT_PREFIX + "brand:top_list:";

    /**
     * 分组列表信息缓存key
     */
    String SPU_TAG_BY_SHOP = PRODUCT_PREFIX + "spu_tag:shop_id:";


    /**
     * 商品库存/销量/评论数据缓存
     */
    String SPU_EXTENSION_KEY = PRODUCT_PREFIX + "spu_extension:";

    /**
     * 商品属性数据缓存
     */
    String SPU_ATTR_VALUE_KEY = PRODUCT_PREFIX + "spu_attr_value:";

    /**
     * 根据skuId获取sku的缓存key
     */
    String SKU_KEY = PRODUCT_PREFIX + "sku:";

    /**
     * 根据spuId获取sku和spu_sku_attr_value里面的数据
     */
    String SKU_WITH_ATTR_LIST_KEY = PRODUCT_PREFIX + "sku:spu_sku_attr_value:";

    /**
     * 供应商开启SKU标识前缀
     */
    String SKU_STATUS_ENABLE = "sku_status_enable:";

    /**
     * 供应商禁用SKU标识前缀
     */
    String SKU_STATUS_DISABLE = "sku_status_disable:";

    /**
     * 供应商删除SKU标识前缀
     */
    String SKU_STATUS_DELETE = "sku_status_delete:";

    /**
     * 供应商插入SKU标识前缀
     */
    String SKU_STATUS_INSERT = "sku_status_insert:";

    /**
     * 代销商品基本信息是否改变缓存key
     */
    String SPU_SUPPLIER_CHANGE_LOG = PRODUCT_PREFIX + "spu_supplier_change_log:";

    /**
     *  拼团最低sku价格对应的原价
     */
    String GROUP_SPU_PRICE_FREE = PRODUCT_PREFIX + "group_spu_price_free:";


    /**
     * sku的库存信息
     */
    String SKU_SOCK = PRODUCT_PREFIX + "sku_sock:";

    /**
     * sku锁定明细记录
     */
    String ORDER_SKU_LOCK = PRODUCT_PREFIX + "order_sku_lock:";

    /**
     * 商品的赠品列表
     */
    String GIVEAWAY_BY_SPU_ID = PRODUCT_PREFIX + "giveaway_by_spu_id:";

    /**
     * 处理sku库存的变化定时任务最后一次统计的时间
     */
    String SKU_CHANGE_STATISTICS_TIME = PRODUCT_PREFIX + "sku_change_statistics_time:";

    /**
     * 供应商代销商品是否下线
     */
    String SUPPLIER_SPU_UPDATE_STATUS = PRODUCT_PREFIX + "supplier_spu_update_status:";

    /**
     * 供应商修改商品代销商品状态无需改变
     */
    String COMMISSION_SPU_STATUS_NO_CHANGE = PRODUCT_PREFIX + "commission_spu_status_no_change:";

    /**
     * 根据运费模板id获取运费模板的缓存key
     */
    String WAREHOUSE_BY_ID_PREFIX = PRODUCT_PREFIX + "warehouse:by_id:";

}
