package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.activity.two.percent.give.agent.CustomActivityTwoPercentGiveAgentDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.two.percent.give.agent.CustomActivityTwoPercentGiveAgentAddEntity;
import com.crm.rely.backend.core.entity.custom.activity.two.percent.give.agent.CustomActivityTwoPercentGiveAgentDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.two.percent.give.agent.CustomActivityTwoPercentGiveAgentSearchEntity;
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 = "ACTIVITY-SERVICE", path = "/custom/activity/two/percent/give/agent/manager")
public interface CustomActivityTwoPercentGiveAgentFeignService {


    @PostMapping("/add")
    BaseResultDto add(@RequestBody @Validated CustomActivityTwoPercentGiveAgentAddEntity entity) throws Exception;

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

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityTwoPercentGiveAgentDto> searcherList(@RequestBody @Validated CustomActivityTwoPercentGiveAgentSearchEntity entity);

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

