package com.crm.manager.service;

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.MamApplyDto;
import com.crm.rely.backend.core.entity.mam.MamApplyApproveEntity;
import com.crm.rely.backend.core.entity.mam.MamApplyDeleteEntity;
import com.crm.rely.backend.core.entity.mam.MamApplyListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

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

    @PostMapping("/list")
    BaseResultWithPagerDto<List<MamApplyDto>> applyList(MamApplyListEntity entity) throws Exception;

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

    /**
     * 删除申请
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/delete")
    BaseResultDto<Object> deleteApply(MamApplyDeleteEntity entity) throws Exception;
}
