fix: 接口变更/请求方法为大写

This commit is contained in:
TsMask
2025-02-20 10:42:34 +08:00
parent 8bfa73a67a
commit 7322759545
83 changed files with 568 additions and 1388 deletions

View File

@@ -9,7 +9,7 @@ import { request } from '@/plugins/http-fetch';
export function getBakFile() {
return request({
url: '/lm/table/list',
method: 'get',
method: 'GET',
});
}
@@ -21,7 +21,7 @@ export function getBakFile() {
export function getBakFileList(query: Record<string, any>) {
return request({
url: '/lm/file/list',
method: 'get',
method: 'GET',
params: query,
});
}
@@ -34,7 +34,7 @@ export function getBakFileList(query: Record<string, any>) {
export function downFile(query: Record<string, any>) {
return request({
url: `/lm/file/${query.fileName}`,
method: 'get',
method: 'GET',
params: query,
responseType: 'blob',
timeout: 180_000,
@@ -49,7 +49,7 @@ export function downFile(query: Record<string, any>) {
export function delFile(query: Record<string, any>) {
return request({
url: `/lm/file/${query.fileName}`,
method: 'delete',
method: 'DELETE',
params: query,
});
}
@@ -62,7 +62,7 @@ export function delFile(query: Record<string, any>) {
export function updateFTPInfo(data: Record<string, any>) {
return request({
url: `/lm/table/ftp`,
method: 'post',
method: 'POST',
data: data,
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
});
@@ -76,7 +76,7 @@ export function updateFTPInfo(data: Record<string, any>) {
export function getFTPInfo() {
return request({
url: `/lm/table/ftp`,
method: 'get',
method: 'GET',
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
});
}
@@ -89,7 +89,7 @@ export function getFTPInfo() {
export function putFTPInfo(filePath: string, fileName: string) {
return request({
url: `/lm/table/ftp`,
method: 'put',
method: 'PUT',
data: { filePath, fileName },
});
}