first commit

This commit is contained in:
liu
2026-07-13 15:23:29 +08:00
commit 50885a98c8
473 changed files with 33772 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import createAxios from '@/utils/request';
/** 获取存储配置 */
export async function getStorageConfig() {
return createAxios({
url: '/system/storage/config',
method: 'get',
});
}
/** 保存存储配置 */
export async function saveStorageConfig(data: Record<string, any>) {
return createAxios({
url: '/system/storage/save',
method: 'post',
data,
});
}
/** 测试存储连接 */
export async function testStorageConnection(disk: string) {
return createAxios({
url: '/system/storage/test',
method: 'post',
timeout: 60000,
data: { disk },
});
}