2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
|
|
import{K as a}from"./index-CnBLdARH.js";function o(e,t){return a.get(r("/data/ed/file/batchExport",t),{params:e,responseType:"blob",customMessageError:!0,timeout:1/0})}function d(e,t){return a.post(r("/data/ed/file/createFolder",t),e)}function l(e,t){return a.get(r("/data/ed/file/download",t),{params:e,responseType:"blob",customMessageError:!0})}function u(e,t){return a.post(r("/data/ed/file/updateFileInfo",t),e)}function s(e,t){return a.get(r("/data/ed/file/tree",t),{params:e})}function f(e,t){return a.get(r("/data/ed/file/mergeChunks",t),{params:e,timeout:1/0})}function c(e,t){return a.get(r("/data/ed/file/moveFile",t),{params:e})}function p(e,t){return a.get(r("/data/ed/file/copyFile",t),{params:e})}function g(e,t){return a.post(r("/data/ed/file/info",t),e)}function m(e,t){return a.get(r("/data/ed/file/fileDetail",t),{params:e})}function F(e,t){return a.post(r("/data/ed/relation/create",t),e)}function y(e,t){return a.get(r("/data/ed/relation/cancel/".concat(e.id),t))}function v(e,t){return a.post(r("/data/ed/relation/update",t),e)}function w(e,t){return a.get(r("/data/ed/relation/listRelations/".concat(e.id),t))}function b(e,t){return a.get(r("/data/ed/file/delete",t),{params:e})}function h(e,t){return a.get(r("/data/ed/file/uploadRecord",t),{params:e})}function R(e,t){return a.get(r("/data/ed/file/versionView",t),{params:e})}function k(e,t){return a.get(r("/data/ed/file/versionBack",t),{params:e})}const n={preview:!0,move:!0,download:!0,import:!1,edit:!0,upload:!0,delete:!0,export:!1};function x(e,t){return t==="personal"?{data:n}:a.get("/data/ed/permission/".concat(e.id))}function C(e,t){return a.post(r("/data/ed/relation/checkFileNameExist",t),e)}function I(e,t){return a.post(r("/data/ed/relation/upload",t),e,{timeout:1/0,headers:{"Content-Type":"multipart/form-data"}})}function E(e,t){return a.get(r("/data/ed/file/queryChildFolder",t),{params:e})}function T(e,t){return a.get(r("/data/ed/file/preview",t),{params:e,responseType:"blob",customMessageError:!0,timeout:1/0})}function q(e){return a.get("/data/ed/file/format/list",{params:e})}function B(e){return a.get("/data/ed/file/format/add",{params:e})}function D(e){return a.get("/data/ed/file/format/delete",{params:e})}function r(e,t){return t==="personal"?e=e.replace(/^\/data\/ed\//,"/data/ed/user/"):t==="library"&&(e=e.replace(/^\/data\/ed\//,"/data/ed/repo/")),e}export{c as A,g as B,v as a,R as b,y as c,b as d,l as e,T as f,m as g,x as h,d as i,u as j,C as k,w as l,I as m,q as n,B as o,n as p,D as q,r,s,o as t,h as u,k as v,f as w,F as x,E as y,p as z};
|