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.agent.CustomActivityHundredAgentDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.agent.CustomActivityHundredAgentApproveEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.agent.CustomActivityHundredAgentDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.hundred.agent.CustomActivityHundredAgentSearchEntity;
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/agent/manager")
public interface CustomActivityHundredAgentFeignService {

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

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

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


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

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

    @PostMapping("/export")
    BaseResultDto<List<CustomActivityHundredAgentDto>> export(CustomActivityHundredAgentSearchEntity entity) throws Exception;

}
