import { MethodType } from "../../enum/method-type.enum";
import { HeaderType } from "../../enum/header-type.enum";

const prefix = "";
const flowProcess = "/flowProcess";
const flowProcessApi = {
  approval: {
    // 查询详情
    selectTaskInfo: {
      url: prefix + flowProcess + "/selectTaskInfo",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 撤回
    revokeInstance: {
      url: prefix + flowProcess + "/revokeInstance",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    selectTaskInfoDone: {
      url: prefix + flowProcess + "/selectTaskInfoDone",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 查询可提交节点详情
    selectSubNode: {
      url: prefix + flowProcess + "/selectSubNode",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 节点操作
    mostTypeNodeOperation: {
      url: prefix + flowProcess + "/mostTypeNodeOperation",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 获取流程图相关信息
    getFlowChart: {
      url: prefix + flowProcess + "/getFlowChart",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    }
  }
};

export default flowProcessApi;
