Skip to content

Commit 58a2707

Browse files
committed
秒杀活动,添加商品,分页查询
1 parent 4b13497 commit 58a2707

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

src/api/promotion/seckillActivity.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
3+
// 创建秒杀活动
4+
export function createSeckillActivity(data) {
5+
return request({
6+
url: '/promotion/seckill-activity/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新秒杀活动
13+
export function updateSeckillActivity(data) {
14+
return request({
15+
url: '/promotion/seckill-activity/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除秒杀活动
22+
export function deleteSeckillActivity(id) {
23+
return request({
24+
url: '/promotion/seckill-activity/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得秒杀活动
30+
export function getSeckillActivity(id) {
31+
return request({
32+
url: '/promotion/seckill-activity/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得秒杀活动分页
38+
export function getSeckillActivityPage(query) {
39+
return request({
40+
url: '/promotion/seckill-activity/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
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+
}

src/views/promotion/seckillActivity/index.vue

Whitespace-only changes.

0 commit comments

Comments
 (0)