acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/api/promotion/diy.js

56 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
2024-10-01 09:15:35 +08:00
const modules_mall_sheep_request_index = require("../../request/index.js");
2024-09-19 07:20:14 +08:00
const DiyApi = {
getUsedDiyTemplate: () => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: "/promotion/diy-template/used",
method: "GET",
custom: {
showError: false,
showLoading: false
}
});
},
getDiyTemplate: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: "/promotion/diy-template/get",
method: "GET",
params: {
id
},
custom: {
showError: false,
showLoading: false
}
});
},
getDiyPage: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: "/promotion/diy-page/get",
method: "GET",
params: {
id
}
});
},
updatePhone: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: "/api/setting/updatePhone",
method: "POST",
params: {
id
}
});
},
getCode: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: "/public/getCode",
method: "GET",
params: {
id
}
});
}
};
exports.DiyApi = DiyApi;