parent
7aed2a00e2
commit
6b1e2ab67c
@ -1,44 +1,59 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询网络列表
|
||||
export function listNet(query) {
|
||||
return request({
|
||||
url: '/netEwm/net/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
url: "/netEwm/net/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 查询网络详细
|
||||
export function getNet(id) {
|
||||
return request({
|
||||
url: '/netEwm/net/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
url: "/netEwm/net/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增网络
|
||||
export function addNet(data) {
|
||||
return request({
|
||||
url: '/netEwm/net',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/net",
|
||||
method: "post",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 修改网络
|
||||
export function updateNet(data) {
|
||||
return request({
|
||||
url: '/netEwm/net',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/net",
|
||||
method: "put",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 删除网络
|
||||
export function delNet(id) {
|
||||
return request({
|
||||
url: '/netEwm/net/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/netEwm/net/" + id,
|
||||
method: "delete",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -1,44 +1,59 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询连网历史列表
|
||||
export function listNetHistory(query) {
|
||||
return request({
|
||||
url: '/netEwm/netHistory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
url: "/netEwm/netHistory/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 查询连网历史详细
|
||||
export function getNetHistory(id) {
|
||||
return request({
|
||||
url: '/netEwm/netHistory/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
url: "/netEwm/netHistory/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增连网历史
|
||||
export function addNetHistory(data) {
|
||||
return request({
|
||||
url: '/netEwm/netHistory',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/netHistory",
|
||||
method: "post",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 修改连网历史
|
||||
export function updateNetHistory(data) {
|
||||
return request({
|
||||
url: '/netEwm/netHistory',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/netHistory",
|
||||
method: "put",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 删除连网历史
|
||||
export function delNetHistory(id) {
|
||||
return request({
|
||||
url: '/netEwm/netHistory/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/netEwm/netHistory/" + id,
|
||||
method: "delete",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -1,44 +1,59 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询广告历史列表
|
||||
export function listPosterHistory(query) {
|
||||
return request({
|
||||
url: '/netEwm/posterHistory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
url: "/netEwm/posterHistory/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 查询广告历史详细
|
||||
export function getPosterHistory(id) {
|
||||
return request({
|
||||
url: '/netEwm/posterHistory/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
url: "/netEwm/posterHistory/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增广告历史
|
||||
export function addPosterHistory(data) {
|
||||
return request({
|
||||
url: '/netEwm/posterHistory',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/posterHistory",
|
||||
method: "post",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 修改广告历史
|
||||
export function updatePosterHistory(data) {
|
||||
return request({
|
||||
url: '/netEwm/posterHistory',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/posterHistory",
|
||||
method: "put",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 删除广告历史
|
||||
export function delPosterHistory(id) {
|
||||
return request({
|
||||
url: '/netEwm/posterHistory/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/netEwm/posterHistory/" + id,
|
||||
method: "delete",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -1,44 +1,59 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询商户列表
|
||||
export function listShanghu(query) {
|
||||
return request({
|
||||
url: '/netEwm/shanghu/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
url: "/netEwm/shanghu/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 查询商户详细
|
||||
export function getShanghu(id) {
|
||||
return request({
|
||||
url: '/netEwm/shanghu/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
url: "/netEwm/shanghu/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增商户
|
||||
export function addShanghu(data) {
|
||||
return request({
|
||||
url: '/netEwm/shanghu',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/shanghu",
|
||||
method: "post",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 修改商户
|
||||
export function updateShanghu(data) {
|
||||
return request({
|
||||
url: '/netEwm/shanghu',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
url: "/netEwm/shanghu",
|
||||
method: "put",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 删除商户
|
||||
export function delShanghu(id) {
|
||||
return request({
|
||||
url: '/netEwm/shanghu/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/netEwm/shanghu/" + id,
|
||||
method: "delete",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in new issue