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.requite.CustomActivityRequiteApplyDto;
import com.crm.rely.backend.core.dto.sales.SalesRewardStatisticsDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.requite.CustomActivityRequiteApplyApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.requite.CustomActivityRequiteApplyDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.requite.CustomActivityRequiteApplySearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/requite/apply/manager")
public interface CustomActivityRequiteApplyFeignService {

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityRequiteApplyDto> searcherList(@RequestBody @Validated CustomActivityRequiteApplySearchEntity entity) throws Exception;

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

    @PostMapping("/delete")
    BaseResultDto delete(@RequestBody @Validated CustomActivityRequiteApplyDeleteEntity entity) throws Exception;

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

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

    @PostMapping("/export")
    List<CustomActivityRequiteApplyDto> searcherListExport(CustomActivityRequiteApplySearchEntity entity);
}

