fix: 网元管理的接口调整

This commit is contained in:
TsMask
2023-09-07 15:30:24 +08:00
parent 0194d7f9b7
commit b1763092c6
2 changed files with 203 additions and 170 deletions

View File

@@ -80,6 +80,7 @@ export async function getNeInfo(id: string | number) {
* @returns object
*/
export function addNeInfo(data: Record<string, any>) {
data.port = `${data.port}`
return request({
url: `/systemManagement/v1/elementType/${data.ne_type}/objectType/neInfo`,
method: 'post',
@@ -93,6 +94,7 @@ export function addNeInfo(data: Record<string, any>) {
* @returns object
*/
export function updateNeInfo(data: Record<string, any>) {
data.port = `${data.port}`
return request({
url: `/systemManagement/v1/elementType/${data.ne_type}/objectType/neInfo`,
method: 'put',