feat: 合并Gin_Vue
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { request } from '@/plugins/http-fetch';
|
||||
import { toRaw } from 'vue';
|
||||
|
||||
/**
|
||||
* 签约列表导出
|
||||
@@ -8,7 +7,7 @@ import { toRaw } from 'vue';
|
||||
*/
|
||||
export function exportSub(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/udmUserManage/v1/subExport',
|
||||
url: '/api/rest/udmUserManage/v1/subExport',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob',
|
||||
@@ -23,7 +22,7 @@ export function exportSub(query: Record<string, any>) {
|
||||
*/
|
||||
export function importSubData(neId: string, data: FormData) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/subImport/${neId}`,
|
||||
url: `/api/rest/udmUserManage/v1/subImport/${neId}`,
|
||||
method: 'post',
|
||||
data,
|
||||
dataType: 'form-data',
|
||||
@@ -37,7 +36,7 @@ export function importSubData(neId: string, data: FormData) {
|
||||
*/
|
||||
export function loadSub(neId: string) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/subSave/${neId}`,
|
||||
url: `/api/rest/udmUserManage/v1/subSave/${neId}`,
|
||||
method: 'post',
|
||||
timeout: 60 * 1000,
|
||||
});
|
||||
@@ -50,7 +49,7 @@ export function loadSub(neId: string) {
|
||||
*/
|
||||
export function listSub(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/udmUserManage/v1/subs',
|
||||
url: '/api/rest/udmUserManage/v1/subs',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
@@ -63,20 +62,20 @@ export function listSub(query: Record<string, any>) {
|
||||
*/
|
||||
export function getSub(neId: string, imsi: string) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/subInfo/${neId}/${imsi}`,
|
||||
url: `/api/rest/udmUserManage/v1/subInfo/${neId}/${imsi}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约
|
||||
* @param data 签约对象
|
||||
* @param neId 网元ID
|
||||
* @param data 签约对象
|
||||
* @param neId 网元ID
|
||||
* @returns object
|
||||
*/
|
||||
export function updateSub(neId:string,data: Record<string, any>) {
|
||||
export function updateSub(neId: string, data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/sub/${neId}`,
|
||||
url: `/api/rest/udmUserManage/v1/sub/${neId}`,
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
@@ -89,7 +88,7 @@ export function updateSub(neId:string,data: Record<string, any>) {
|
||||
*/
|
||||
export function addSub(neID: string, data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/sub/${neID}`,
|
||||
url: `/api/rest/udmUserManage/v1/sub/${neID}`,
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -102,7 +101,7 @@ export function addSub(neID: string, data: Record<string, any>) {
|
||||
*/
|
||||
export function batchAddSub(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/sub/${data.neID}/${data.num}`,
|
||||
url: `/api/rest/udmUserManage/v1/sub/${data.neID}/${data.num}`,
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -115,7 +114,7 @@ export function batchAddSub(data: Record<string, any>) {
|
||||
*/
|
||||
export function delSub(neId: string, imsi: string) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/sub/${neId}/${imsi}`,
|
||||
url: `/api/rest/udmUserManage/v1/sub/${neId}/${imsi}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
@@ -127,7 +126,7 @@ export function delSub(neId: string, imsi: string) {
|
||||
*/
|
||||
export function batchDelSub(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/udmUserManage/v1/sub/${data.neID}/${data.imsi}/${data.num}`,
|
||||
url: `/api/rest/udmUserManage/v1/sub/${data.neID}/${data.imsi}/${data.num}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user