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.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.follow.FollowDealSearchDto;
import com.crm.rely.backend.core.dto.ib.exclude.AgentPcExcludeDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.follow.deal.*;
import com.crm.rely.backend.core.entity.ib.exclude.AgentPcExcludeAddEntity;
import com.crm.rely.backend.core.entity.ib.exclude.AgentPcExcludeListEntity;
import com.crm.rely.backend.core.entity.ib.exclude.AgentPcExcludeUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
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/agent/pc/exclude")
public interface AgentPcExcludeFeignService {

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

    @PostMapping("/delete")
    BaseResultDto<Object> delete(SingleLongEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto<Object> update(AgentPcExcludeUpdateEntity entity) throws Exception;

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

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

}
