Commit 79a57c6f authored by zhengyi's avatar zhengyi

修改优惠券url路由

parent 738c3c88
......@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 创建优惠券信息
export function createCoupon(data) {
return request({
url: '/ecw/coupon/createOrUpdate',
url: '/product/coupon/createOrUpdate',
method: 'post',
data: data
})
......@@ -12,7 +12,7 @@ export function createCoupon(data) {
// 更新优惠券信息
export function updateCoupon(data) {
return request({
url: '/ecw/coupon/update',
url: '/product/coupon/update',
method: 'put',
data: data
})
......@@ -21,7 +21,7 @@ export function updateCoupon(data) {
// 删除优惠券信息
export function deleteCoupon(id) {
return request({
url: '/ecw/coupon/delete?id=' + id,
url: '/product/coupon/delete?id=' + id,
method: 'delete'
})
}
......@@ -29,7 +29,7 @@ export function deleteCoupon(id) {
// 获得优惠券信息
export function getCoupon(id) {
return request({
url: '/ecw/coupon/get?couponId=' + id,
url: '/product/coupon/get?couponId=' + id,
method: 'get'
})
}
......@@ -37,7 +37,7 @@ export function getCoupon(id) {
// 获得优惠券信息分页
export function getCouponPage(query) {
return request({
url: '/ecw/coupon/page',
url: '/product/coupon/page',
method: 'get',
params: query
})
......@@ -46,7 +46,7 @@ export function getCouponPage(query) {
// 获得优惠券下拉
export function getCouponSelect(query) {
return request({
url: '/ecw/coupon/select',
url: '/product/coupon/select',
method: 'get',
params: query
})
......@@ -55,7 +55,7 @@ export function getCouponSelect(query) {
// 导出优惠券信息 Excel
export function exportCouponExcel(query) {
return request({
url: '/ecw/coupon/export-excel',
url: '/product/coupon/export-excel',
method: 'get',
params: query,
responseType: 'blob'
......
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