You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from "@/utils/request";
|
|
|
|
|
|
|
|
// 查询广告列表
|
|
|
|
export function listPoster(query) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster/list",
|
|
|
|
method: "get",
|
|
|
|
params: query,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询广告详细
|
|
|
|
export function getPoster(id) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster/" + id,
|
|
|
|
method: "get",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增广告
|
|
|
|
export function addPoster(data) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster",
|
|
|
|
method: "post",
|
|
|
|
data: data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改广告
|
|
|
|
export function updatePoster(data) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster",
|
|
|
|
method: "put",
|
|
|
|
data: data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除广告
|
|
|
|
export function delPoster(id) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster/" + id,
|
|
|
|
method: "delete",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//广告批量分配给商户
|
|
|
|
export function batchAllocation(data) {
|
|
|
|
return request({
|
|
|
|
url: "/netEwm/poster/batchAllocation",
|
|
|
|
method: "post",
|
|
|
|
data: data,
|
|
|
|
});
|
|
|
|
}
|