package com.crm.ucard.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.ib.account.AccountInfoDto;
import com.crm.rely.backend.core.entity.ib.account.AccountInfoListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/5/20.
 */
@FeignClient(name = "IB-SERVICE", path = "/custom/service/account")
public interface AccountInfoFeignService {

    @PostMapping("/dropdown/single")
    AccountInfoDto accountDropdownSingle(AccountInfoListEntity entity) throws Exception;

    @PostMapping("/dropdown")
    BaseResultDto<List<AccountInfoDto>> accountDropdown(AccountInfoListEntity entity) throws Exception;
}
