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

import java.util.List;


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

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivitySurplusGiveDto> pageList(CustomActivitySurplusGiveSearcherEntity entity) throws ServiceException ;

    @PostMapping("/cancel")
    BaseResultDto managerCancel(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/recover/creadit")
    BaseResultDto managerRecoverCreadit(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/complete")
    BaseResultDto managerComplete(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/export")
    List<CustomActivitySurplusGiveDto> searcherListExport(CustomActivitySurplusGiveSearcherEntity entity) throws ServiceException;
}
