zyejMAll-mobile/sheep/api/promotion/diy.js

39 lines
686 B
JavaScript
Raw Permalink Normal View History

2024-08-07 10:31:42 +08:00
import request from '@/sheep/request';
const DiyApi = {
getUsedDiyTemplate: () => {
return request({
url: '/promotion/diy-template/used',
method: 'GET',
custom: {
showError: false,
showLoading: false,
},
});
},
getDiyTemplate: (id) => {
return request({
url: '/promotion/diy-template/get',
method: 'GET',
params: {
2024-08-07 21:40:27 +08:00
id,
2024-08-07 10:31:42 +08:00
},
custom: {
showError: false,
showLoading: false,
},
});
},
getDiyPage: (id) => {
return request({
url: '/promotion/diy-page/get',
method: 'GET',
params: {
2024-08-07 21:40:27 +08:00
id,
},
2024-08-07 10:31:42 +08:00
});
},
};
export default DiyApi;