package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.agent.activity.enroll.AgentActivityEnrollDto;
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.enroll.AgentActivityEnrollAddEntity;
import com.crm.rely.backend.core.entity.agent.activity.enroll.AgentActivityEnrollDeleteEntity;
import com.crm.rely.backend.core.entity.agent.activity.enroll.AgentActivityEnrollSearchEntity;
import com.crm.rely.backend.core.entity.agent.activity.enroll.AgentActivityEnrollUpdateEntity;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
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;

@FeignClient(name = "AGENT-ACTIVITY-SERVICE", path = "/agent/activity/enroll/manager")
public interface AgentActivityEnrollFeignService {
    @PostMapping("/add")
    BaseResultDto addManager(@RequestBody @Validated AgentActivityEnrollAddEntity entity) throws Exception ;

    @PostMapping("/delete")
    BaseResultDto deleteManager(@RequestBody @Validated AgentActivityEnrollDeleteEntity entity) throws Exception ;

    @PostMapping("/update")
    BaseResultDto updateManager(@RequestBody @Validated AgentActivityEnrollUpdateEntity entity) throws Exception ;

    @PostMapping("/search/list")
    ResultWithPagerDto<AgentActivityEnrollDto> searchListManager(@RequestBody @Validated AgentActivityEnrollSearchEntity entity) throws Exception ;

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