package com.red.circle.other.app.inner.endpoint.user.user;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.app.inner.service.user.user.UserRechargeCoinsClientService;
import com.red.circle.other.inner.endpoint.user.user.api.UserGoldCoinRechargeClientApi;
import com.red.circle.other.inner.model.cmd.user.InviteStatisticsQryCmd;
import com.red.circle.other.inner.model.dto.user.UserGoldCoinRechargeDTO;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户邀请服务
 *
 * @author xiongcheng on 2024/3/8
 */
@Validated
@RestController
@RequestMapping(value = UserGoldCoinRechargeClientApi.API_PREFIX, produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class UserGoldCoinRechargeClientEndpoint implements UserGoldCoinRechargeClientApi {

  private final UserRechargeCoinsClientService userRechargeCoinsClientService;

  @Override
  public ResultResponse<Map<Long, BigDecimal>> mapGoldCoinRechargeByUserIds(
      InviteStatisticsQryCmd qryCmd) {
    return ResultResponse.success(
        userRechargeCoinsClientService.mapGoldCoinRechargeByUserIds(qryCmd));
  }


}
