live.js
2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import request from '@/utils/request'
// ******直播间模块接口******
// 获取直播间列表
export function liveGetList(data) {
return request({
url: '/live/getAll',
method: 'post',
data
})
}
// 获取直播间详情
export function liveGetById(data) {
return request({
url: '/live/getById',
method: 'post',
data
})
}
// 添加直播间
export function addLiveSave(data) {
return request({
url: '/live/save',
method: 'post',
data
})
}
// 添加直播间
export function updateLive(data) {
return request({
url: '/live/update',
method: 'post',
data
})
}
// 删除直播间
export function deleteLive(data) {
return request({
url: '/live/delete',
method: 'post',
data
})
}
// 导入商品
export function importProduct(data) {
return request({
url: '/live/importProduct',
method: 'post',
data
})
}
// 审核直播间
export function livePutAudit(data) {
return request({
url: '/live/audit',
method: 'post',
data
})
}
// 重新提交审核直播间
export function reExamine(data) {
return request({
url: '/live/reExamine',
method: 'post',
data
})
}
// 直播间相关产品
export function liveGetProduct(data) {
return request({
url: '/live/getLiveProductRelPageByLiveId',
method: 'post',
data
})
}
// 直播间商品列表查询
export function liveProGetAll(data) {
return request({
url: '/liveProduct/getAll',
method: 'post',
data
})
}
// 获取直播间商品详情
export function proGetById(data) {
return request({
url: '/liveProduct/getById',
method: 'post',
data
})
}
// 添加直播间商品
export function addProductSave(data) {
return request({
url: '/liveProduct/save',
method: 'post',
data
})
}
// 添加直播间商品
export function editProductSave(data) {
return request({
url: '/liveProduct/update',
method: 'post',
data
})
}
// 删除直播间商品
export function delLiveProduct(data) {
return request({
url: '/liveProduct/delete',
method: 'post',
data
})
}
// 审核直播间商品
export function liveProAudit(data) {
return request({
url: '/liveProduct/audit',
method: 'post',
data
})
}
// 重新提交审核商品
export function ProReExamine(data) {
return request({
url: '/liveProduct/reExamine',
method: 'post',
data
})
}