package com.crm.manager.service.ib;

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.ib.trade.*;
import com.crm.rely.backend.core.entity.base.BaseIbReportListEntity;
import com.crm.rely.backend.core.entity.ib.trade.*;
import com.crm.rely.backend.exception.ServiceException;
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;

/**
 * Created by max on 2020/7/14.
 */
@FeignClient(name = "TASK-SERVICE", path = "/manage/service/trade/import")
public interface TradeImportFeignService {

    @PostMapping("/dw")
    BaseResultDto<Object> dwImport(List<TradeDwImportSaveEntity> entities) throws ServiceException;

    @PostMapping("/daily")
    BaseResultDto<Object> dailyImport(List<DailyVolumeImportSaveEntity> entities) throws ServiceException;

}
