fix: UDM用户数据超时时间180s

This commit is contained in:
TsMask
2024-02-19 10:41:46 +08:00
parent abe5595fa7
commit 24ba825365
2 changed files with 9 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ export function exportAuth(query: Record<string, any>) {
method: 'post', method: 'post',
data: query, data: query,
responseType: 'blob', responseType: 'blob',
timeout: 180_000,
}); });
} }
@@ -78,6 +79,7 @@ export function updateAuth(data: Record<string, any>) {
url: `/ne/udm/auth/${data.neId}`, url: `/ne/udm/auth/${data.neId}`,
method: 'put', method: 'put',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -91,6 +93,7 @@ export function addAuth(data: Record<string, any>) {
url: `/ne/udm/auth/${data.neId}`, url: `/ne/udm/auth/${data.neId}`,
method: 'post', method: 'post',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -104,6 +107,7 @@ export function batchAuth(data: Record<string, any>) {
url: `/ne/udm/auth/${data.neID}/${data.num}`, url: `/ne/udm/auth/${data.neID}/${data.num}`,
method: 'post', method: 'post',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -129,5 +133,6 @@ export function batchDelAuth(data: Record<string, any>) {
return request({ return request({
url: `/ne/udm/auth/${data.neID}/${data.imsi}/${data.num}`, url: `/ne/udm/auth/${data.neID}/${data.imsi}/${data.num}`,
method: 'delete', method: 'delete',
timeout: 180_000,
}); });
} }

View File

@@ -80,6 +80,7 @@ export function updateSub(neId: string, data: Record<string, any>) {
url: `/ne/udm/sub/${neId}`, url: `/ne/udm/sub/${neId}`,
method: 'put', method: 'put',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -93,6 +94,7 @@ export function addSub(neID: string, data: Record<string, any>) {
url: `/ne/udm/sub/${neID}`, url: `/ne/udm/sub/${neID}`,
method: 'post', method: 'post',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -106,6 +108,7 @@ export function batchAddSub(data: Record<string, any>) {
url: `/ne/udm/sub/${data.neID}/${data.num}`, url: `/ne/udm/sub/${data.neID}/${data.num}`,
method: 'post', method: 'post',
data: data, data: data,
timeout: 180_000,
}); });
} }
@@ -131,5 +134,6 @@ export function batchDelSub(data: Record<string, any>) {
return request({ return request({
url: `/ne/udm/sub/${data.neID}/${data.imsi}/${data.num}`, url: `/ne/udm/sub/${data.neID}/${data.imsi}/${data.num}`,
method: 'delete', method: 'delete',
timeout: 180_000,
}); });
} }