package com.mortals.xhx.feign.flowable;

import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
import com.mortals.xhx.common.pdu.api.ApiRespPdu;
import com.mortals.xhx.common.pdu.flow.FlowProcDefPdu;
import com.mortals.xhx.feign.IFeign;
import com.mortals.xhx.flowable.model.ModelInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 工作流流程模型
 */
@FeignClient(name = "${application.register.service-name:workflow-engine}")
public interface IApiFlowModelFeign extends IFeign {

    /**
     * 保存更新bpmnModel
     * @param modelInfoVo
     * @return
     */
    @PostMapping("/flowable/model/saveBpmnModel")
    ApiRespPdu<String> saveBpmnModel(@RequestBody ModelInfoVo modelInfoVo);



    /**
     * 新增bpmnModel
     * @param modelInfoVo
     * @return
     */
    @PostMapping("/flowable/model/addBpmnModel")
    ApiRespPdu<String> addBpmnModel(@RequestBody ModelInfoVo modelInfoVo);



}

