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.account.AccountInfoDto;
import com.crm.rely.backend.core.dto.pamm.PammInfoDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.pamm.PammInfoListEntity;
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;

@FeignClient(name = "IB-SERVICE", path = "/manage/service/pamm")
public interface PammInfoFeignService {

    @PostMapping("/list")
    BaseResultWithPagerDto<List<PammInfoDto>> list(@RequestBody PammInfoListEntity entity) throws Exception;

    @PostMapping("/subs")
    BaseResultDto<List<AccountInfoDto>> subs(@RequestBody SingleLongEntity entity) throws ServiceException;


}
