package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.account.trading.AccountTradingActivityDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.entity.account.trading.AccountTradingActivityListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/12/15.
 */
@FeignClient(value = "IB-SERVICE", path = "/manage/service/account/trading/activity")
public interface AccountTradingActivityFeignService {

    @PostMapping("/list")
    BaseResultWithPagerDto<List<AccountTradingActivityDto>> getList(AccountTradingActivityListEntity entity) throws Exception;

    @PostMapping("/export")
    BaseResultDto<List<AccountTradingActivityDto>> export(AccountTradingActivityListEntity entity) throws Exception;
}
