feat: 接入实训接口调试参数配置

This commit is contained in:
TsMask
2024-07-11 10:23:18 +08:00
parent f3c46976ae
commit 99140f0641
4 changed files with 185 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
import { request } from '@/plugins/http-fetch';
/**
* 网元参数配置应用申请信息
* @param params 数据 {neType,paramName}
* @returns object
*/
export function getPtNeConfigApply(params: Record<string, any>) {
return request({
url: `/pt/neConfigApply`,
params,
method: 'get',
});
}
/**
* 网元参数配置应用申请提交(仅学生操作)
* @param data 数据 { "neType": "MME", "status": "1" }
* @returns object
*/
export function stuPtNeConfigApply(data: Record<string, any>) {
return request({
url: `/pt/neConfigApply`,
method: 'post',
data: data,
});
}
/**
* 网元参数配置应用申请状态变更(仅管理员/教师操作)
* @param data 数据 { "applyId": "1", "neType": "MME", "status": "3", "backInfo": "sgw参数错误" }
* @returns object
*/
export function updatePtNeConfigApply(data: Record<string, any>) {
return request({
url: `/pt/neConfigApply`,
method: 'put',
data: data,
});
}