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.CustomActivityApplySearchDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.CustomActivityApplyApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.CustomActivityApplyDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.CustomActivityApplySearchEntity;
import com.crm.rely.backend.core.entity.custom.activity.CustomActivityApplyUpdateEntity;
import com.crm.rely.backend.core.pojo.view.CustomActivityApplyExportView;
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/manager")
public interface CustomActivityApplyFeignService {

    @PostMapping("/approve")
    BaseResultDto approve(CustomActivityApplyApproveEntity entity) throws Exception;

    @PostMapping("/de/complete")
    BaseResultDto deComplete(SingleLongEntity entity) throws Exception;

    @PostMapping("/complete")
    BaseResultDto complete(CustomActivityApplyApproveEntity entity) throws Exception;

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

    @PostMapping("/update")
    BaseResultDto update(CustomActivityApplyUpdateEntity entity) throws Exception;

    @PostMapping("/searcher/list")
    ResultWithPagerDto<CustomActivityApplySearchDto> searcherList(CustomActivityApplySearchEntity entity) throws Exception;

    @PostMapping("/searcher/passed/list")
    ResultWithPagerDto<CustomActivityApplySearchDto> searcherPassedList(CustomActivityApplySearchEntity entity) throws Exception;

    @PostMapping("/searcher/export")
    BaseResultDto<List<CustomActivityApplyExportView>> exportList(CustomActivityApplySearchEntity entity) throws Exception;

    @PostMapping("/searcher/passed/export")
    BaseResultDto<List<CustomActivityApplyExportView>> exportPassedList(CustomActivityApplySearchEntity entity) throws Exception;

    @PostMapping("/searcher/single")
    CustomActivityApplySearchDto searcherSingle(SingleLongEntity entity) throws Exception;
}
