acdr/acdr-ui/src/sheep/api/promotion/diy.js

39 lines
680 B
JavaScript
Raw Normal View History

2024-09-08 14:01:29 +08:00
import request from '@/sheep/request'
2024-09-05 14:05:15 +08:00
const DiyApi = {
getUsedDiyTemplate: () => {
return request({
url: '/promotion/diy-template/used',
method: 'GET',
custom: {
showError: false,
showLoading: false,
},
2024-09-08 14:01:29 +08:00
})
2024-09-05 14:05:15 +08:00
},
getDiyTemplate: (id) => {
return request({
url: '/promotion/diy-template/get',
method: 'GET',
params: {
2024-09-08 14:01:29 +08:00
id,
2024-09-05 14:05:15 +08:00
},
custom: {
showError: false,
showLoading: false,
},
2024-09-08 14:01:29 +08:00
})
2024-09-05 14:05:15 +08:00
},
getDiyPage: (id) => {
return request({
url: '/promotion/diy-page/get',
method: 'GET',
params: {
2024-09-08 14:01:29 +08:00
id,
},
})
2024-09-05 14:05:15 +08:00
},
2024-09-08 14:01:29 +08:00
}
2024-09-05 14:05:15 +08:00
2024-09-08 14:01:29 +08:00
export default DiyApi