package com.yuchen.saas.integration.feign.api.feign;

import com.yuchen.saas.integration.feign.api.dto.ActRuApprovalDataDto;
import com.yuchen.saas.integration.feign.api.dto.AuditParam;
import com.yuchen.saas.integration.feign.api.dto.UpdateActHiTaskParam;
import com.yuchen.saas.integration.feign.api.entity.ActRuApprovalData;
import com.yuchen.saas.integration.feign.api.entity.ActRuTask;
import com.yuchen.saas.integration.feign.api.vo.ProcessVo;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

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

/**
 * @author 刘通
 * @date 2021/1/3 17:11
 */
@Component
public class ActApprovalClientFallback implements ActApprovalClient{

    @Override
    public R rollBackApproval(String ruApprovalDataId) {
        return R.fail("操作失败");
    }

    @Override
    public R startProcess(ActRuApprovalDataDto entity) {
        return R.fail("操作失败");
    }

    @Override
    public R startProcessAuto(ActRuApprovalDataDto entity) {
        return R.fail("操作失败");
    }

    @Override
    public R<List<ActRuApprovalData>> auditTask(AuditParam entity) {
        return R.fail("操作失败");
    }

    @Override
    public R<ProcessVo> getProcessList(String ruApprovalDataId) {
        return R.fail("操作失败");
    }

    @Override
    public R cancel(String ruApprovalDataId) {
        return R.fail("操作失败");
    }

    @Override
    public R<ActRuTask> gerRuTaskByDataId(String ruApprovalDataId) {
        return R.fail("操作失败");
    }

    @Override
    public R<List<ActRuTask>> findRuTaskListByType(String actType, Long parkId) {
        return R.fail("操作失败");
    }

    @Override
    public R<ActRuTask> getRuTaskById(String ruTaskId) {
        return R.fail("操作失败");
    }

    @Override
    public R updateByDataId(UpdateActHiTaskParam updateActHiTaskParam) {
        return R.fail("操作失败");
    }

    @Override
    public R<Integer> getRuTaskCount(String ruTaskId,String parkId) {
        return R.fail("操作失败");
    }

    @Override
    public R<Integer> getAllRuTaskCount(String actType, String parkId) {
        return R.fail("操作失败");
    }

    @Override
    public R<List<ActRuTask>> findUserAllRuTaskList() {
        return R.fail("操作失败");
    }

}
