package com.red.circle.wallet.inner.service.diamond.impl;

import com.red.circle.wallet.infra.database.rds.service.diamond.DiamondBalanceService;
import com.red.circle.wallet.inner.service.diamond.DiamondBalanceClientService;
import java.math.BigDecimal;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户钻石余额表(20230718) 服务类.
 *
 * @author pengliang on 2023/12/26
 */
@Service
@RequiredArgsConstructor
public class DiamondBalanceClientServiceImpl implements DiamondBalanceClientService {

  private final DiamondBalanceService diamondBalanceService;

  @Override
  public BigDecimal getAvailableBalance(Long userId) {
    return diamondBalanceService.getAvailableBalance(userId);
  }

}
