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.surplus.CustomActivitySurplusExcludeDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.surplus.CustomActivitySurplusExcludeAddEntity;
import com.crm.rely.backend.core.entity.custom.activity.surplus.CustomActivitySurplusExcludeDeleteEntitys;
import com.crm.rely.backend.core.entity.custom.activity.surplus.CustomActivitySurplusExcludeSearchEntity;
import com.crm.rely.backend.core.entity.custom.activity.surplus.CustomActivitySurplusExcludeUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/surplus/exclude/manager")
public interface CustomActivitySurplusExcludeFeignService {

    @PostMapping("/add")
    BaseResultDto add(CustomActivitySurplusExcludeAddEntity entity) throws ServiceException;

    @PostMapping("/delete")
    BaseResultDto delete(CustomActivitySurplusExcludeDeleteEntitys entitys) throws ServiceException;

    @PostMapping("/update")
    BaseResultDto update(CustomActivitySurplusExcludeUpdateEntity entity) throws ServiceException;

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivitySurplusExcludeDto> searchPageList(CustomActivitySurplusExcludeSearchEntity entity) throws ServiceException;

    @PostMapping("/search/single")
    BaseResultDto searchSingle(SingleLongEntity entity) throws ServiceException;
    
}
