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

const prefix = "/api/file";
const fileApi = {
  // 流程发起
  page: {
    url: prefix + "/page",
    method: MethodType.POST.code,
    header: HeaderType.AUTH.code
  },
  upload: {
    url: "/upload/api/v1" + "/single",
    method: MethodType.POST.code,
    header: HeaderType.UPLOAD_AUTH.code
  },
  download: {
    url: prefix + "/download",
    method: MethodType.GET.code,
    header: HeaderType.DOWNLOAD_AUTH.code
  },
  downloadBatch: {
    url: prefix + "/downloadBatch",
    method: MethodType.POST.code,
    header: HeaderType.DOWNLOAD_AUTH.code
  }
};

export default fileApi;
