package com.red.circle.order.inner.endpoint.api;

import com.red.circle.framework.dto.ResultResponse;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户货运代理冲值.
 *
 * @author pengliang on 2023/12/27
 */
public interface UserFreightRechargeRecordClientApi {

  String API_PREFIX = "/user/freight/recharge-record/client";

  /**
   * 查询充值金额大于2000的用户.
   */
  @GetMapping("/listNowMonthBySysOrigin")
  ResultResponse<List<Long>> listNowMonthBySysOrigin(@RequestParam("sysOrigin") String sysOrigin);

  /**
   * 累计金额.
   */
  @GetMapping("/inrNowMonthAmount")
  ResultResponse<BigDecimal> inrNowMonthAmount(
      @RequestParam("userId") Long userId,
      @RequestParam("amount") BigDecimal amount
  );

  /**
   * 统计用户充值金额
   */
  @GetMapping("/countAmount")
  ResultResponse<BigDecimal> countAmount(@RequestParam("userId") Long userId);
}
