productBundle.js 1.08 KB
module.exports = function (app) {

    app.get("/product/bundle/index", "product.productBundle.Index", function(req, res) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "套餐管理"
        }
    });

    app.get("/product/bundle/add", "product.productBundle.Edit", function(req, res) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "增加套餐",
            action: "/product/bundle/save"
        }
        
    });

    // app.get("/product/bundle/:id", "product.productBundle.Edit", productBundle_findProductBundleByID, function(apiReq, req, res) {
    //     this.$extend = {
    //         moduleName: "营销管理",
    //         pageName: "编辑套餐",
    //         action: "/product/bundle/save",
    //         data: apiReq.data
    //     }
    //
    // });

    app.post("/product/bundle/list", "productBundle_productBundleList");

    app.post("/product/bundle/stop", "productBundle_productBundleStop");

    app.post("/product/bundle/save", "productBundle_productBundleSaveOrUpdate");
    
    
}