package com.sckw.order.api.feign;

import com.sckw.core.web.response.BaseResult;
import com.sckw.order.api.model.SalesReportDataVo;
import com.sckw.order.api.model.SalesReportQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 销售报表相关Feign接口
 */
@FeignClient(name = "sckw-ng-order", contextId = "salesReportFeignService")
public interface SalesReportOrderFeignService {

    /**
     * 查询销售报表数据
     *
     * @param queryDto 查询参数
     * @return 销售报表数据列表
     */
    @PostMapping("/kwoTradeOrderStatistics/querySalesReportData")
    BaseResult<List<SalesReportDataVo>> querySalesReportData(@RequestBody SalesReportQueryDto queryDto);
}
