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.no.worries.CustomActivityNoWorriesDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.no.worries.CustomActivityNoWorriesApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.no.worries.CustomActivityNoWorriesDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.no.worries.CustomActivityNoWorriesSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author: houn
 */
@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/no/worries/manager")
public interface CustomActivityNoWorriesFeignService {


    @PostMapping("/realization/approve")
    BaseResultDto realizationApprove(CustomActivityNoWorriesApproveEntity entity) throws
            Exception;

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


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

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

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


    @PostMapping("/export")
    BaseResultDto<List<CustomActivityNoWorriesDto>> export(CustomActivityNoWorriesSearchEntity entity) throws Exception;
}
