Authored by xuhongyun

build

module.exports = function(app) {
// 存储装修模板
app.post("/shop/sellerDecoratorRest/saveDecoratorTemplate", "sellerDecorator_saveDecoratorTemplate");
// 更新装修模板
app.post("/shop/sellerDecoratorRest/updateDecoratorTemplate", "sellerDecorator_updateDecoratorTemplate");
//店铺装修保存
app.post("/shop/sellerDecoratorRest/saveShopsDecorator","sellerDecorator_saveShopsDecorator");
}
... ...
module.exports = {
namespace: "sellerDecorator",
apis: {
saveDecoratorTemplate: {
title: "存储店铺装修模板",
url: "/sellerShopsDecoratorRest/saveDecoratorTemplate",
params: [
{name: "shopId", type: "Number"},
{name: "platform", type: "Number"},
{name: 'platformType', type: 'Number'},
{name: "appType", type: "Number"},
{name: "templateName", type: "String"},
{name: "templateType", type: "String"},
{name: "modules", type: "String"},
{name: "flag", type: "Number"}
]
},
updateDecoratorTemplate: {
title: "更新店铺模板",
url: "/sellerShopsDecoratorRest/updateDecoratorTemplate",
params: [
{name: "templateId", type: "Number"},
{name: "shopId", type: "Number"},
{name: "platform", type: "Number"},
{name: 'platformType', type: 'Number'},
{name: "appType", type: "Number"},
{name: "templateName", type: "String"},
{name: "modules", type: "String"}
]
},
saveShopsDecorator:{
title:"店铺装修详情保存",
url:"/sellerShopsDecoratorRest/saveShopsDecorator",
params:[
{name: 'shopsId', type: 'Number'},
{name: 'submitStatus', type: 'Number'},
{name: 'platform', type: 'String'},
{name: 'platformType', type: 'Number'},
{name: 'templateType', type: 'String'},
{name: 'resources', type: 'String'}
]
}
}
}
\ No newline at end of file
... ...