From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/api/infra/fileConfig/index.ts | 69 ++++++++++++++++++++++++++++++++++
1 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/src/api/infra/fileConfig/index.ts b/src/api/infra/fileConfig/index.ts
new file mode 100644
index 0000000..cd1dbe6
--- /dev/null
+++ b/src/api/infra/fileConfig/index.ts
@@ -0,0 +1,69 @@
+import request from '@/config/axios'
+
+export interface FileClientConfig {
+ basePath: string
+ host?: string
+ port?: number
+ username?: string
+ password?: string
+ mode?: string
+ endpoint?: string
+ bucket?: string
+ accessKey?: string
+ accessSecret?: string
+ enablePathStyleAccess?: boolean
+ enablePublicAccess?: boolean
+ region?: string
+ domain: string
+}
+
+export interface FileConfigVO {
+ id: number
+ name: string
+ storage?: number
+ master: boolean
+ visible: boolean
+ config: FileClientConfig
+ remark: string
+ createTime: Date
+}
+
+// 鏌ヨ鏂囦欢閰嶇疆鍒楄〃
+export const getFileConfigPage = (params: PageParam) => {
+ return request.get({ url: '/infra/file-config/page', params })
+}
+
+// 鏌ヨ鏂囦欢閰嶇疆璇︽儏
+export const getFileConfig = (id: number) => {
+ return request.get({ url: '/infra/file-config/get?id=' + id })
+}
+
+// 鏇存柊鏂囦欢閰嶇疆涓轰富閰嶇疆
+export const updateFileConfigMaster = (id: number) => {
+ return request.put({ url: '/infra/file-config/update-master?id=' + id })
+}
+
+// 鏂板鏂囦欢閰嶇疆
+export const createFileConfig = (data: FileConfigVO) => {
+ return request.post({ url: '/infra/file-config/create', data })
+}
+
+// 淇敼鏂囦欢閰嶇疆
+export const updateFileConfig = (data: FileConfigVO) => {
+ return request.put({ url: '/infra/file-config/update', data })
+}
+
+// 鍒犻櫎鏂囦欢閰嶇疆
+export const deleteFileConfig = (id: number) => {
+ return request.delete({ url: '/infra/file-config/delete?id=' + id })
+}
+
+// 鎵归噺鍒犻櫎鏂囦欢閰嶇疆
+export const deleteFileConfigList = (ids: number[]) => {
+ return request.delete({ url: '/infra/file-config/delete-list', params: { ids: ids.join(',') } })
+}
+
+// 娴嬭瘯鏂囦欢閰嶇疆
+export const testFileConfig = (id: number) => {
+ return request.get({ url: '/infra/file-config/test?id=' + id })
+}
--
Gitblit v1.8.0