package com.red.circle.other.inner.endpoint.material.gift.api;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.gift.GiftGiveRunningWaterBackQryCmd;
import com.red.circle.other.inner.model.cmd.gift.SumAnchorTargetQryCmd;
import com.red.circle.other.inner.model.dto.gift.GiftGiveRunningWaterDTO;
import java.math.BigDecimal;
import java.util.List;
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/8/19
 */
public interface GiftGiveRunningWaterClientApi {

  String API_PREFIX = "/gift-give-running-water/client";

  /**
   * 发送人的礼物状态为已退款.
   *
   * @param sendUserId      发送用户ID
   * @param startDateNumber 开始时间段
   * @param endDateNumber   结束时间段
   */
  @GetMapping("/updateGiftStatusRefunded")
  ResultResponse<Void> updateGiftStatusRefunded(
      @RequestParam("sendUserId") Long sendUserId,
      @RequestParam("startDateNumber") Integer startDateNumber,
      @RequestParam("endDateNumber") Integer endDateNumber);

  /**
   * 礼物赠送流水.
   */
  @PostMapping("/listGiftGiveRunningWater")
  ResultResponse<List<GiftGiveRunningWaterDTO>> listGiftGiveRunningWater(
      @RequestBody GiftGiveRunningWaterBackQryCmd query);

  /**
   * 统计礼物数量-count.
   */
  @PostMapping("/sumGiftQuantity")
  ResultResponse<String> sumGiftQuantity(@RequestBody GiftGiveRunningWaterBackQryCmd query);

  /**
   * 统计礼物价值-count.
   */
  @PostMapping("/sumGiftValue")
  ResultResponse<String> sumGiftValue(@RequestBody GiftGiveRunningWaterBackQryCmd query);

  /**
   * 恢复主播目标.
   */
  @PostMapping("/sumAnchorTarget")
  ResultResponse<BigDecimal> sumAnchorTarget(@RequestBody SumAnchorTargetQryCmd query);

  /**
   * 恢复主播幸运礼物目标.
   */
  @PostMapping("/sumAnchorTargetLuckyGift")
  ResultResponse<BigDecimal> sumAnchorTargetLuckyGift(@RequestBody SumAnchorTargetQryCmd query);
}
