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

@@ -8,7 +8,7 @@ import { request } from '@/plugins/http-fetch';
export function resetUDMAuth(neId: string) {
return request({
url: `/neData/udm/auth/resetData/${neId}`,
method: 'put',
method: 'PUT',
timeout: 180_000,
});
}
@@ -21,7 +21,7 @@ export function resetUDMAuth(neId: string) {
export function listUDMAuth(query: Record<string, any>) {
return request({
url: '/neData/udm/auth/list',
method: 'get',
method: 'GET',
params: query,
timeout: 30_000,
});
@@ -36,7 +36,7 @@ export function listUDMAuth(query: Record<string, any>) {
export function getUDMAuth(neId: string, imsi: string) {
return request({
url: `/neData/udm/auth/${neId}/${imsi}`,
method: 'get',
method: 'GET',
});
}
@@ -48,7 +48,7 @@ export function getUDMAuth(neId: string, imsi: string) {
export function addUDMAuth(data: Record<string, any>) {
return request({
url: `/neData/udm/auth/${data.neId}`,
method: 'post',
method: 'POST',
data: data,
timeout: 180_000,
});
@@ -63,7 +63,7 @@ export function addUDMAuth(data: Record<string, any>) {
export function batchAddUDMAuth(data: Record<string, any>, num: number) {
return request({
url: `/neData/udm/auth/${data.neId}/${num}`,
method: 'post',
method: 'POST',
data: data,
timeout: 180_000,
});
@@ -77,7 +77,7 @@ export function batchAddUDMAuth(data: Record<string, any>, num: number) {
export function updateUDMAuth(data: Record<string, any>) {
return request({
url: `/neData/udm/auth/${data.neId}`,
method: 'put',
method: 'PUT',
data: data,
timeout: 180_000,
});
@@ -92,7 +92,7 @@ export function updateUDMAuth(data: Record<string, any>) {
export function delUDMAuth(neId: string, imsi: string) {
return request({
url: `/neData/udm/auth/${neId}/${imsi}`,
method: 'delete',
method: 'DELETE',
timeout: 180_000,
});
}
@@ -107,7 +107,7 @@ export function delUDMAuth(neId: string, imsi: string) {
export function batchDelUDMAuth(neId: string, imsi: string, num: number) {
return request({
url: `/neData/udm/auth/${neId}/${imsi}/${num}`,
method: 'delete',
method: 'DELETE',
timeout: 180_000,
});
}
@@ -120,7 +120,7 @@ export function batchDelUDMAuth(neId: string, imsi: string, num: number) {
export function importUDMAuth(data: Record<string, any>) {
return request({
url: `/neData/udm/auth/import`,
method: 'post',
method: 'POST',
data,
timeout: 180_000,
});
@@ -134,8 +134,8 @@ export function importUDMAuth(data: Record<string, any>) {
export function exportUDMAuth(data: Record<string, any>) {
return request({
url: '/neData/udm/auth/export',
method: 'post',
data,
method: 'GET',
params: data,
responseType: 'blob',
timeout: 180_000,
});