package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseReportResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.model.dto.report.*;
import com.crm.rely.backend.model.entity.report.VolumeReportEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;

/**
 * @author y
 * @create 2022/5/6
 */
@FeignClient(name = "TASK-SERVICE", path = "/manager/service/report")
public interface TaskReportFeignService {

    @PostMapping("/volume")
    BaseReportResultDto<List<VolumeReportListDto>, VolumeReportSumDto> volume(VolumeReportEntity entity) throws Exception;

    @PostMapping("/volume/export")
    BaseResultDto<List<VolumeReportListDto>> volumeExport(VolumeReportEntity entity) throws Exception;

    @PostMapping("/sales/volume")
    BaseReportResultDto<List<SalesCommissionReportListDto>, SalesCommissionReportSumDto> salesVolume(VolumeReportEntity entity) throws Exception;

    @PostMapping("/sales/volume/export")
    BaseResultDto<List<SalesCommissionReportListDto>> salesVolumeExport(VolumeReportEntity entity) throws Exception;


}
