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

@@ -10,7 +10,7 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
export async function listTraceTask(query: Record<string, any>) {
return request({
url: '/trace/task/list',
method: 'get',
method: 'GET',
params: query,
});
}
@@ -23,7 +23,7 @@ export async function listTraceTask(query: Record<string, any>) {
export async function getTraceTask(id: string | number) {
return request({
url: `/trace/task/${id}`,
method: 'get',
method: 'GET',
});
}
@@ -35,7 +35,7 @@ export async function getTraceTask(id: string | number) {
export function addTraceTask(data: Record<string, any>) {
return request({
url: `/trace/task`,
method: 'post',
method: 'POST',
data: data,
});
}
@@ -48,7 +48,7 @@ export function addTraceTask(data: Record<string, any>) {
export function updateTraceTask(data: Record<string, any>) {
return request({
url: `/trace/task`,
method: 'put',
method: 'PUT',
data: data,
});
}
@@ -61,7 +61,7 @@ export function updateTraceTask(data: Record<string, any>) {
export async function delTraceTask(ids: string) {
return request({
url: `/trace/task/${ids}`,
method: 'delete',
method: 'DELETE',
});
}
@@ -73,7 +73,7 @@ export async function delTraceTask(ids: string) {
export function filePullTask(traceId: string) {
return request({
url: '/trace/task/filePull',
method: 'get',
method: 'GET',
params: { traceId },
responseType: 'blob',
timeout: 60_000,
@@ -88,7 +88,7 @@ export async function getNeTraceInterfaceAll() {
// 发起请求
const result = await request({
url: `/api/rest/databaseManagement/v1/elementType/omc_db/objectType/ne_info`,
method: 'get',
method: 'GET',
params: {
SQL: `SELECT ne_type,interface FROM trace_info GROUP BY ne_type,interface`,
},