Commit 02eff0ae by lixiaomin

联调优惠券类别

parent 1a31de34
import request from "@/utils/request"; import request from "@/utils/request";
// 查询列表 // 查询列表
export function listClass(query) { export function getCouCategoryList(data) {
return request({ return request({
url: "/system/category/list", url: "/coupon-category",
method: "get", method: "post",
params: query, data: data,
});
}
// 查询列表
export function getList(query) {
return request({
url: "/system/category/getList",
method: "get",
params: query,
}); });
} }
// 查询详细 // 新增
export function getClass(id) { export function addCouCategory(data) {
return request({ return request({
url: "/system/category/" + id, url: "/coupon-category",
method: "get", method: "put",
data: data,
}); });
} }
// 新增 // 新增
export function addClass(data) { export function updateCouCategory(data) {
return request({ return request({
url: "/system/category", url: "/coupon-category/update",
method: "post", method: "post",
data: data, data: data,
}); });
} }
// 修改 // 删除
export function updateClass(data) { export function delCouCategory(id) {
return request({ return request({
url: "/system/category", url: "/coupon-category/" + id,
method: "put", method: "delete",
data: data,
}); });
} }
// 删除 // 下架
export function delClass(id) { export function offlineCouCategory(id) {
return request({ return request({
url: "/system/category/" + id, url: "/coupon-category/offline/" + id,
method: "delete", method: "get",
}); });
} }
// 查询排序列表 // 上架
export function turnList(query) { export function onlineCouCategory(id) {
return request({ return request({
url: "/system/category/turnOrder", url: "/coupon-category/online/" + id,
method: "get", method: "get",
params: query,
}); });
} }
...@@ -35,7 +35,7 @@ module.exports = { ...@@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://140.143.224.240:8091`, target: `http://140.143.224.240:8090`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["^" + 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