package com.crm.manager.service.follow;

import com.crm.rely.backend.core.dto.base.BaseReportResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.follow.report.FollowCommissionReportDto;
import com.crm.rely.backend.core.dto.follow.report.FollowPeriodCommissionReportDto;
import com.crm.rely.backend.core.entity.follow.report.FollowCommissionReportEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;

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

    @PostMapping("/commission")
    BaseReportResultDto<List<FollowCommissionReportDto>, FollowCommissionReportDto> commissionReport(FollowCommissionReportEntity entity) throws Exception;

    @PostMapping("/commission/export")
    BaseResultDto<List<FollowCommissionReportDto>> commissionReportExport(@RequestBody FollowCommissionReportEntity entity) throws Exception;

    @PostMapping("/period/commission")
    BaseReportResultDto<List<FollowPeriodCommissionReportDto>, FollowPeriodCommissionReportDto> periodCommissionReport(FollowCommissionReportEntity entity) throws Exception;

    @PostMapping("/period/commission/export")
    BaseResultDto<List<FollowPeriodCommissionReportDto>> periodCommissionReportExport(FollowCommissionReportEntity entity) throws Exception;
}
