Commit 02eff0ae by lixiaomin

联调优惠券类别

parent 1a31de34
import request from "@/utils/request";
// 查询列表
export function listClass(query) {
export function getCouCategoryList(data) {
return request({
url: "/system/category/list",
method: "get",
params: query,
});
}
// 查询列表
export function getList(query) {
return request({
url: "/system/category/getList",
method: "get",
params: query,
url: "/coupon-category",
method: "post",
data: data,
});
}
// 查询详细
export function getClass(id) {
// 新增
export function addCouCategory(data) {
return request({
url: "/system/category/" + id,
method: "get",
url: "/coupon-category",
method: "put",
data: data,
});
}
// 新增
export function addClass(data) {
export function updateCouCategory(data) {
return request({
url: "/system/category",
url: "/coupon-category/update",
method: "post",
data: data,
});
}
// 修改
export function updateClass(data) {
// 删除
export function delCouCategory(id) {
return request({
url: "/system/category",
method: "put",
data: data,
url: "/coupon-category/" + id,
method: "delete",
});
}
// 删除
export function delClass(id) {
// 下架
export function offlineCouCategory(id) {
return request({
url: "/system/category/" + id,
method: "delete",
url: "/coupon-category/offline/" + id,
method: "get",
});
}
// 查询排序列表
export function turnList(query) {
// 上架
export function onlineCouCategory(id) {
return request({
url: "/system/category/turnOrder",
url: "/coupon-category/online/" + id,
method: "get",
params: query,
});
}
......@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://140.143.224.240:8091`,
target: `http://140.143.224.240:8090`,
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment