package com.crm.manager.service;

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.account.AccountInfoDto;
import com.crm.rely.backend.core.dto.ib.account.AccountInfoSumDto;
import com.crm.rely.backend.core.entity.account.info.AccountInfoSingleEntity;
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
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 org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

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

    @PostMapping("/search/list")
    BaseReportResultDto<List<AccountInfoDto>, AccountInfoSumDto> manageAccountList(AccountInfoListEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<AccountInfoDto> managerSearchSingle(AccountInfoSingleEntity entity) throws Exception;

}
