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
    },
    // 获取组织树
    getOrgTree: {
      url: prefix + flowProcess + "/getOrgTree",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 获取用户分页信息
    getOrgUserPage: {
      url: prefix + flowProcess + "/getOrgUserPage",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 沟通反馈
    communicate: {
      url: prefix + flowProcess + "/communicate",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    },
    // 回复征询
    nextcommunicate: {
      url: prefix + flowProcess + "/nextcommunicate",
      method: MethodType.POST.code,
      header: HeaderType.AUTH.code
    }
  }
};

export default flowProcessApi;
