fix: 接口变更/请求方法为大写
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user