feat: MML网元操作支持区分接口类型

This commit is contained in:
TsMask
2024-02-28 10:27:02 +08:00
parent f19e5e48f3
commit 84b0575ab4
2 changed files with 30 additions and 8 deletions

View File

@@ -30,17 +30,19 @@ export async function getMMLByNE(neType: string) {
* 发送网元的mml命令
* @param neType 网元类型
* @param neId 网元ID
* @param objectType 接口类型
* @param cmdStr 命令串
* @returns
*/
export async function sendMMlByNE(
neType: string,
neId: string,
objectType: string,
cmdArr: string[]
) {
// 发起请求
const result = await request({
url: `/api/rest/operationManagement/v1/elementType/${neType}/objectType/mml?ne_id=${neId}`,
url: `/api/rest/operationManagement/v1/elementType/${neType}/objectType/${objectType}?ne_id=${neId}`,
method: 'post',
data: { mml: cmdArr },
timeout: 180_000,