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.belong.AgentBelongChangeDto;
import com.crm.rely.backend.core.entity.ib.belong.AgentBelongChangeAddEntity;
import com.crm.rely.backend.core.entity.ib.belong.AgentBelongChangeListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/11/4.
 */
@FeignClient(name = "IB-SERVICE", path = "/manage/service/agent/belong/change")
public interface AgentBelongChangeFeignService {

    @PostMapping("/add")
    BaseResultDto<Object> add(AgentBelongChangeAddEntity entity) throws Exception;

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

    @PostMapping("/batch/add")
    BaseResultDto<List<BaseResultDto>> batchAdd(List<AgentBelongChangeAddEntity> entities) throws Exception;

}
