package com.crm.manager.service.agent;

import com.crm.rely.backend.core.dto.agent.activity.custom.login.AgentActivityCustomLoginDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.entity.agent.activity.custom.login.AgentActivityCustomLoginAddEntity;
import com.crm.rely.backend.core.entity.agent.activity.custom.login.AgentActivityCustomLoginDeleteEntity;
import com.crm.rely.backend.core.entity.agent.activity.custom.login.AgentActivityCustomLoginSearchEntity;
import com.crm.rely.backend.core.entity.agent.activity.custom.login.AgentActivityCustomLoginUpdateEntity;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "AGENT-ACTIVITY-SERVICE", path = "/agent/activity/custom/login/manager")
public interface AgentActivityCustomLoginFeignService {

    @PostMapping("/add")
    BaseResultDto addManager(AgentActivityCustomLoginAddEntity entity) throws Exception;

    @PostMapping("/delete")
    BaseResultDto deleteManager(AgentActivityCustomLoginDeleteEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto updateManager(AgentActivityCustomLoginUpdateEntity entity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<AgentActivityCustomLoginDto> searchListManager(AgentActivityCustomLoginSearchEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto searchSingleManager(SingleLongEntity entity) throws Exception;
}
