You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
639 B
JavaScript

/**
* Created by lk on 17/6/4.
*/
import axios from "../../utils/axios";
// 谁最懂我相关
// 列表
export function adList(query) {
return axios({
url: "/admin/ad/ad/index",
method: "get",
params: query
});
}
// 保存
export function adSave(data, formName, method = "post") {
var url = formName === "add" ? "/admin/ad/ad/save" : "/admin/ad/ad/edit";
return axios({
url: url,
method: method,
data: data
});
}
// 删除
export function adDelete(data) {
return axios({
url: "/admin/ad/ad/delete",
method: "post",
data: data
});
}