bd944c4a
shuaidawang
商品规格和spu前端代码生成
|
1
2
|
import request from '@/utils/request'
|
6d48bd1e
YunaiV
promotion:完善限时折扣的...
|
3
|
// 创建商品 SPU
|
bd944c4a
shuaidawang
商品规格和spu前端代码生成
|
4
5
6
7
8
9
10
11
|
export function createSpu(data) {
return request({
url: '/product/spu/create',
method: 'post',
data: data
})
}
|
6d48bd1e
YunaiV
promotion:完善限时折扣的...
|
12
|
// 更新商品 SPU
|
bd944c4a
shuaidawang
商品规格和spu前端代码生成
|
13
14
15
16
17
18
19
20
|
export function updateSpu(data) {
return request({
url: '/product/spu/update',
method: 'put',
data: data
})
}
|
6d48bd1e
YunaiV
promotion:完善限时折扣的...
|
21
|
// 删除商品 SPU
|
bd944c4a
shuaidawang
商品规格和spu前端代码生成
|
22
23
24
25
26
27
28
|
export function deleteSpu(id) {
return request({
url: '/product/spu/delete?id=' + id,
method: 'delete'
})
}
|
6d48bd1e
YunaiV
promotion:完善限时折扣的...
|
29
|
// 获得商品 SPU 详情
|
e1e55dc8
luowenfeng
feature(商品添加): 规格...
|
30
31
|
export function getSpuDetail(id) {
return request({
|
7a4a6a30
YunaiV
product:优化管理后台相关的接口
|
32
|
url: '/product/spu/get-detail?id=' + id,
|
e1e55dc8
luowenfeng
feature(商品添加): 规格...
|
33
34
35
36
|
method: 'get'
})
}
|
6d48bd1e
YunaiV
promotion:完善限时折扣的...
|
37
|
// 获得商品 SPU 分页
|
bd944c4a
shuaidawang
商品规格和spu前端代码生成
|
38
39
40
41
42
43
44
|
export function getSpuPage(query) {
return request({
url: '/product/spu/page',
method: 'get',
params: query
})
}
|
bd661296
YunaiV
promotion:完善优惠劵模板的功能
|
45
46
47
48
49
50
51
52
|
// 获得商品 SPU 精简列表
export function getSpuSimpleList() {
return request({
url: '/product/spu/get-simple-list',
method: 'get',
})
}
|