package com.red.circle.other.infra.database.rds.dao.user.user;


import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.user.user.UserGoldCoinRecharge;
import com.red.circle.other.inner.model.cmd.team.bd.BdTeamWorkStatisticsQryCmd;
import com.red.circle.other.inner.model.dto.user.UserGoldCoinRechargeDTO;
import java.math.BigDecimal;
import java.util.List;
import java.util.Set;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户账号认证 DAO 接口.
 * </p>
 *
 * @author zongpubin on  2023-09-13 11:43
 */
public interface UserGoldCoinRechargeDAO extends BaseDAO<UserGoldCoinRecharge> {

  /**
   * 获取用户充值记录
   *
   * @param userIds
   * @return
   */
  List<UserGoldCoinRechargeDTO> listRechargeCoinsByUserIds(@Param("userIds") Set<Long> userIds);

  /**
   * 获取bd邀请总金额
   *
   * @param qryCmd
   * @param userId
   * @return
   */
  BigDecimal getInviteTotalAmount(@Param("qryCmd") BdTeamWorkStatisticsQryCmd qryCmd,
      @Param("userId") Long userId);
}
