topic.js
675 Bytes
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
import request from '@/utils/request'
export default {
getList: function (params) {
return request({
url: '/promotion/topic/list',
method: 'get',
params
})
},
save: function (params) {
return request({
url: '/promotion/topic',
method: 'post',
params
})
},
remove: function (id) {
return request({
url: '/promotion/topic',
method: 'delete',
params: {
id: id
}
})
},
changeDisabled:function(id,disabled){
return request({
url:'/promotion/topic/changeDisabled',
method:'post',
params:{
id:id,
disabled:disabled
}
})
}
}