package com.red.circle.other.inner.endpoint.live.api;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.live.RoomContributionBalancePageQryCmd;
import com.red.circle.other.inner.model.dto.live.RoomContributionBalanceDTO;
import java.math.BigDecimal;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 房间贡献，余额.
 *
 * @author pengliang on 2023/7/24
 */
public interface RoomContributionBalanceClientApi {

  String API_PREFIX = "/room-contribution-balance/client";

  /**
   * 获取总额数量.
   *
   * @param userId 用户id
   * @return 总额
   */
  @GetMapping("/getTotalQuantityByUserId")
  ResultResponse<BigDecimal> getTotalQuantityByUserId(@RequestParam("userId") Long userId);


  /**
   * 房间贡献奖杯.
   */
  @PostMapping("/pageRoomContributionOps")
  ResultResponse<PageResult<RoomContributionBalanceDTO>> pageRoomContributionOps(
      @RequestBody @Validated RoomContributionBalancePageQryCmd qryCmd);

}
