package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.ib.apply.AgentApplyDto;
import com.crm.rely.backend.core.entity.base.LongEntitys;
import com.crm.rely.backend.core.entity.ib.apply.AgentApplyApproveEntity;
import com.crm.rely.backend.core.entity.ib.apply.AgentApplyListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * Created by max on 2020/8/27.
 */
@FeignClient(value = "IB-SERVICE", path = "/manage/service/agent/apply")
public interface AgentApplyFeignService {


    @PostMapping("/list")
    BaseResultWithPagerDto<List<AgentApplyDto>> getList(AgentApplyListEntity entity) throws Exception;

    @PostMapping("/approve")
    BaseResultDto<Object> approve(AgentApplyApproveEntity entity) throws Exception;

    @PostMapping("/status/list")
    BaseResultDto<Map<Long, Integer>> statusList(LongEntitys entity) throws Exception;

}
