first commit
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user