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.mam.MamSubsApplyDto;
import com.crm.rely.backend.core.entity.mam.MamSubsApplyListEntity;
import com.crm.rely.backend.core.entity.mam.MamSubsApproveEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by max on 2020/9/1.
 */
@FeignClient(value = "IB-SERVICE", path = "/manage/service/mam/subs")
public interface MamSubsApplyFeignService {


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

    @PostMapping("/apply/list")
    BaseResultWithPagerDto<List<MamSubsApplyDto>> getList(MamSubsApplyListEntity entity) throws Exception;

}
