Files
2026-07-13 15:23:29 +08:00

29 lines
599 B
TypeScript

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 },
});
}