--新增删除鉴权用户,更新中英文库

This commit is contained in:
lai
2023-09-21 19:48:04 +08:00
parent 5cb99ff153
commit 4e4d7ad61a
8 changed files with 129 additions and 157 deletions

View File

@@ -1,7 +1,7 @@
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { request } from '@/plugins/http-fetch';
import { parseObjLineToHump } from '@/utils/parse-utils';
import { toRaw } from 'vue';
/**
* 查询鉴权列表
* @param query 查询参数
@@ -39,3 +39,30 @@ export function updateAuth(data: Record<string, any>) {
data: data,
});
}
/**
* 新增鉴权
* @param data 鉴权对象
* @returns object
*/
export function addAuth(neID:string,data: Record<string, any>) {
return request({
url: `/udmUserManage/v1/auth/${neID}`,
method: 'post',
data: data,
});
}
/**
* 删除鉴权
* @param data 鉴权对象
* @returns object
*/
export function delAuth(neId:string,data: Record<string, any>) {
return request({
url: `/udmUserManage/v1/auth/${neId}/${data.imsi}`,
method: 'delete',
});
}