package com.red.circle.other.infra.database.cache.service.other;


import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
import com.red.circle.other.inner.model.cmd.activity.lottery.ActivityLotteryTurntableCache;

/**
 * 活动抽奖配置.
 *
 * @author pengliang on 2021/11/11
 */
public interface ActivityLotteryConfCacheService {


  /**
   * 添加转盘配置.
   *
   * @param sysOrigin 平台
   * @param cache     缓存
   */
  void addLotteryTurntable(SysOriginPlatformEnum sysOrigin,
      ActivityLotteryTurntableCache cache);

  /**
   * 获取转盘.
   *
   * @param sysOrigin 平台
   * @return cache
   */
  ActivityLotteryTurntableCache getLotteryTurntable(SysOriginPlatformEnum sysOrigin);

  /**
   * 消耗库存.
   *
   * @param sysOrigin  平台
   * @param prizesCode 奖品编号
   */
  @Deprecated
  Long consumeInStock(SysOriginPlatformEnum sysOrigin, String prizesCode);

  /**
   * 减去消耗库存.
   *
   * @param sysOrigin  平台
   * @param prizesCode 奖品编号
   */
  @Deprecated
  Long minusConsumeInStock(SysOriginPlatformEnum sysOrigin, String prizesCode);
}
