package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.ib.balance.AgentBalanceTransferDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.ib.balance.AgentBalanceTransferApproveEntity;
import com.crm.rely.backend.core.entity.ib.balance.AgentBalanceTransferListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/8/4.
 */
@FeignClient(name = "IB-SERVICE",path = "/manage/service/agent/balance/transfer")
public interface AgentBalanceTransferService {

    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<AgentBalanceTransferDto>> searchList(AgentBalanceTransferListEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<AgentBalanceTransferDto> searchSingle(SingleLongEntity entity) throws Exception;

    @PostMapping("/approve")
    BaseResultDto<Object> approve(AgentBalanceTransferApproveEntity entity) throws Exception;

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