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

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.order.inner.model.cmd.ProductConfigCmd;
import com.red.circle.order.inner.model.dto.ProductConfigDTO;
import com.red.circle.order.inner.model.dto.ProductConfigPackageDTO;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户充值统计.
 *
 * @author pengliang on 2023/9/13
 */
public interface ProductClientApi {

  String API_PREFIX = "/product/client";


  @PostMapping("/mapByProductIds")
  ResultResponse<Map<String, ProductConfigDTO>> mapByProductIds(@RequestBody ProductConfigCmd cmd);

  @PostMapping("/mapByProductCnfId")
  ResultResponse<Map<Long, List<ProductConfigPackageDTO>>> mapByProductCnfId(
      @RequestBody Set<Long> productCnfIds);
}
