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.percentage.give.CustomActivityPercentageGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.percentage.give.CustomActivityPercentageGiveApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.percentage.give.CustomActivityPercentageGiveDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.percentage.give.CustomActivityPercentageGiveSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/percentage/give/manager")
public interface CustomActivityPercentageGiveFeignService {
    @PostMapping("/approve")
    BaseResultDto approve(CustomActivityPercentageGiveApproveEntity entity) throws Exception;

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


    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityPercentageGiveDto> searcherList(CustomActivityPercentageGiveSearchEntity entity) throws Exception;

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

}

