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 { request } from '@/plugins/http-fetch';
export function listNeInfo(query: Record<string, any>) {
return request({
url: '/ne/info/list',
method: 'get',
method: 'GET',
params: query,
timeout: 60_000,
});
@@ -24,7 +24,7 @@ export function listNeInfo(query: Record<string, any>) {
export function getNeInfo(infoId: string | number) {
return request({
url: `/ne/info/${infoId}`,
method: 'get',
method: 'GET',
});
}
@@ -36,7 +36,7 @@ export function getNeInfo(infoId: string | number) {
export function addNeInfo(data: Record<string, any>) {
return request({
url: `/ne/info`,
method: 'post',
method: 'POST',
data: data,
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
timeout: 30_000,
@@ -51,7 +51,7 @@ export function addNeInfo(data: Record<string, any>) {
export function updateNeInfo(data: Record<string, any>) {
return request({
url: `/ne/info`,
method: 'put',
method: 'PUT',
data: data,
crypto: sessionGet(CACHE_SESSION_CRYPTO_API) !== 'false',
timeout: 30_000,
@@ -66,7 +66,7 @@ export function updateNeInfo(data: Record<string, any>) {
export function delNeInfo(infoIds: string | number) {
return request({
url: `/ne/info/${infoIds}`,
method: 'delete',
method: 'DELETE',
timeout: 60_000,
});
}
@@ -79,7 +79,7 @@ export function delNeInfo(infoIds: string | number) {
export function listAllNeInfo(query: Record<string, any>) {
return request({
url: '/ne/info/listAll',
method: 'get',
method: 'GET',
params: query,
timeout: 60_000,
});
@@ -94,7 +94,7 @@ export function listAllNeInfo(query: Record<string, any>) {
export function stateNeInfo(neType: string, neId: string) {
return request({
url: '/ne/info/state',
method: 'get',
method: 'GET',
params: { neType, neId },
});
}
@@ -108,7 +108,7 @@ export function stateNeInfo(neType: string, neId: string) {
export function getNeInfoByTypeAndID(neType: string, neId: string) {
return request({
url: '/ne/info/byTypeAndID',
method: 'get',
method: 'GET',
params: { neType, neId },
});
}
@@ -122,7 +122,7 @@ export function getNeInfoByTypeAndID(neType: string, neId: string) {
export function getOAMFile(neType: string, neId: string) {
return request({
url: '/ne/info/oamFile',
method: 'get',
method: 'GET',
params: { neType, neId },
});
}
@@ -138,7 +138,7 @@ export function getOAMFile(neType: string, neId: string) {
export function saveOAMFile(data: Record<string, any>) {
return request({
url: `/ne/info/oamFile`,
method: 'put',
method: 'PUT',
data: data,
timeout: 60_000,
});
@@ -151,7 +151,7 @@ export function saveOAMFile(data: Record<string, any>) {
export function getPara5GFilee() {
return request({
url: '/ne/info/para5GFile',
method: 'get',
method: 'GET',
});
}
@@ -164,7 +164,7 @@ export function getPara5GFilee() {
export function savePara5GFile(data: Record<string, any>) {
return request({
url: `/ne/info/para5GFile`,
method: 'put',
method: 'PUT',
data: data,
timeout: 60_000,
});
@@ -178,7 +178,7 @@ export function savePara5GFile(data: Record<string, any>) {
export function serviceNeAction(data: Record<string, any>) {
return request({
url: `/ne/action/service`,
method: 'put',
method: 'PUT',
data: data,
timeout: 60_000,
});