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.hundred.elite.agent.CustomActivityHundredEliteAgentDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.elite.agent.CustomActivityHundredEliteAgentApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.elite.agent.CustomActivityHundredEliteAgentDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.elite.agent.CustomActivityHundredEliteAgentSearchEntity;
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/hundred/elite/agent/vip/manager")
public interface CustomActivityHundredEliteAgentVipFeignService {

    /**
     * 销售审核
     *
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/sales/approve")
    BaseResultDto salesApprove(CustomActivityHundredEliteAgentApproveEntity entity) throws
            Exception;

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

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


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

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

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