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.midyear.ten.percent.give.agent.CustomActivityMidyearTenPercentGiveAgentDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.midyear.ten.percent.give.agent.CustomActivityMidyearTenPercentGiveAgentAddEntity;
import com.crm.rely.backend.core.entity.custom.activity.midyear.ten.percent.give.agent.CustomActivityMidyearTenPercentGiveAgentDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.midyear.ten.percent.give.agent.CustomActivityMidyearTenPercentGiveAgentSearchEntity;
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/midyear/ten/percent/give/agent/manager")
public interface CustomActivityMidyearTenPercentGiveAgentFeignService {


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

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

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

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

