Skip to content

Commit c9409a8

Browse files
committed
秒杀活动增删改查
1 parent 3d2dae1 commit c9409a8

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/api/promotion/seckillActivity.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ export function updateSeckillActivity(data) {
1818
})
1919
}
2020

21+
// 关闭限时折扣活动
22+
export function closeSeckillActivity(id) {
23+
return request({
24+
url: '/promotion/seckill-activity/close?id=' + id,
25+
method: 'put'
26+
})
27+
}
28+
2129
// 删除秒杀活动
2230
export function deleteSeckillActivity(id) {
2331
return request({
@@ -42,13 +50,3 @@ export function getSeckillActivityPage(query) {
4250
params: query
4351
})
4452
}
45-
46-
// 导出秒杀活动 Excel
47-
export function exportSeckillActivityExcel(query) {
48-
return request({
49-
url: '/promotion/seckill-activity/export-excel',
50-
method: 'get',
51-
params: query,
52-
responseType: 'blob'
53-
})
54-
}

0 commit comments

Comments
 (0)