feat:添加admin相关接口

This commit is contained in:
2025-11-13 15:05:54 +08:00
parent 11cb40c86a
commit 067e0539ba
58 changed files with 18736 additions and 273 deletions
+9 -9
View File
@@ -1,10 +1,10 @@
import {http2} from "@/utils/request.js";
export const getFileList = (data) => {
return http2.get(`/v1/file/list?container_id=${data.container_id}&path=${data.path}`)
return http2.get(`/acs/v1/file/list?container_id=${data.container_id}&path=${data.path}`)
}
/** 读取文件内容 */
export const readFile = (data) => {
return http2.post(`/v1/file/read`,data, {
return http2.post(`/acs/v1/file/read`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -12,7 +12,7 @@ export const readFile = (data) => {
}
/*删除文件或文件夹 */
export const deleteFile = (data) => {
return http2.post(`/v1/file/delete`,data, {
return http2.post(`/acs/v1/file/delete`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -20,7 +20,7 @@ export const deleteFile = (data) => {
}
/*写入文件 */
export const writeFile = (data) => {
return http2.post(`/v1/file/write`,data, {
return http2.post(`/acs/v1/file/write`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -28,7 +28,7 @@ export const writeFile = (data) => {
}
/*创建文件夹 */
export const createFolder = (data) => {
return http2.post(`/v1/file/mkdir`,data, {
return http2.post(`/acs/v1/file/mkdir`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -36,7 +36,7 @@ export const createFolder = (data) => {
}
/**上传文件 */
export const uploadFile = (data) => {
return http2.post(`/v1/file/upload_file`,data, {
return http2.post(`/acs/v1/file/upload_file`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -44,7 +44,7 @@ export const uploadFile = (data) => {
}
/**下载文件链接 */
export const downloadFile = (data) => {
return http2.post(`/v1/file/get_down_link`,data, {
return http2.post(`/acs/v1/file/get_down_link`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -52,7 +52,7 @@ export const downloadFile = (data) => {
}
/**压缩文件 */
export const compressFile = (data) => {
return http2.post(`/v1/file/zip_file`,data, {
return http2.post(`/acs/v1/file/zip_file`,data, {
headers: {
"Content-Type": "multipart/form-data"
}
@@ -60,7 +60,7 @@ export const compressFile = (data) => {
}
/**解压文件 */
export const decompressFile = (data) => {
return http2.post(`/v1/file/unzip_file`,data, {
return http2.post(`/acs/v1/file/unzip_file`,data, {
headers: {
"Content-Type": "multipart/form-data"
}