feat: 网元公共配置文件配置页面

This commit is contained in:
TsMask
2024-04-16 19:38:16 +08:00
parent 832f18e2ee
commit d3794ba904
2 changed files with 389 additions and 0 deletions

View File

@@ -141,6 +141,36 @@ export function saveConfigFile(data: Record<string, any>) {
});
}
/**
* 网元端公共配置文件读取
* @param fileType oam_manager.yaml '' txt json yaml yml 根据指定文件类型进行解析序列出map->json
* @returns object
*/
export function getPara5GFilee(fileType: string) {
return request({
url: '/ne/info/para5GFile',
method: 'get',
params: {
fileType,
},
});
}
/**
* 网元端公共配置文件写入
* @param fileType yaml 解析内容数据到对应文件类型
* @param content txt内容为字符串 其他文件格式都用json对象
* @param syncNe 同步到网元端 NeType@ NeId
* @returns object
*/
export function savePara5GFile(data: Record<string, any>) {
return request({
url: `/ne/info/para5GFile`,
method: 'put',
data: data,
});
}
/**
* 网元服务操作
* @param data 对象 {neType,neId,action}