shop.modularDecorator.js 1.32 KB
module.exports = function(app) {
    app.get("/shop/modular/decorator", "shop.modular.Index", function(req, res) {
        this.$extend={
            moduleName:"店铺管理",
            pageName:"模块化装修"
        }
    });

    // 店铺装修工具
    app.get("/shops-proxy/decorator/modulartool", "shop.modular.Decorator");

    //店铺列表
    app.post("/shops-proxy/ModularDecoratorRest/findShopsDecorator","modularDecorator_findShopDecorator");

    // 存储装修模板
    app.post("/shop/ModularDecoratorRest/saveDecoratorTemplate", "modularDecorator_saveDecoratorTemplate");

    // 查询店铺装修模板列表
    app.post("/shops-proxy/ModularDecoratorRest/findDecoratorTemplates", "modularDecorator_findShopDecoratorTemplates");

    // 查询装修模板内容
    app.post("/shops-proxy/ModularDecoratorRest/queryTemplateResource", "modularDecorator_queryDecoratorTemplateResource");

    // 删除装修模板
    app.post("/shops-proxy/ModularDecoratorRest/deleteDecoratorTemplate", "modularDecorator_deleteDecoratorTemplate");

    // 发布装修模板
    app.post("/shops-proxy/ModularDecoratorRest/publishDecoratorTemplate", "modularDecorator_publishDecoratorTemplate");

    // 更新装修模板
    app.post("/shop/ModularDecoratorRest/updateDecoratorTemplate", "modularDecorator_updateDecoratorTemplate");
}