56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
"use strict";
|
|
const modules_mall_sheep_request_index = require("../../request/index.js");
|
|
const DiyApi = {
|
|
getUsedDiyTemplate: () => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "/promotion/diy-template/used",
|
|
method: "GET",
|
|
custom: {
|
|
showError: false,
|
|
showLoading: false
|
|
}
|
|
});
|
|
},
|
|
getDiyTemplate: (id) => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "/promotion/diy-template/get",
|
|
method: "GET",
|
|
params: {
|
|
id
|
|
},
|
|
custom: {
|
|
showError: false,
|
|
showLoading: false
|
|
}
|
|
});
|
|
},
|
|
getDiyPage: (id) => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "/promotion/diy-page/get",
|
|
method: "GET",
|
|
params: {
|
|
id
|
|
}
|
|
});
|
|
},
|
|
updatePhone: (id) => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "/api/setting/updatePhone",
|
|
method: "POST",
|
|
params: {
|
|
id
|
|
}
|
|
});
|
|
},
|
|
getCode: (id) => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "/public/getCode",
|
|
method: "GET",
|
|
params: {
|
|
id
|
|
}
|
|
});
|
|
}
|
|
};
|
|
exports.DiyApi = DiyApi;
|