operations.salecategory.js 3.71 KB
/**
 * Created by ty on 2016/6/23.
 * 销售类目
 */

module.exports=function(app) {

    /*销售类目主页*/
    app.get("/sale/category/index","operations.salecategory.Index", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "销售类目管理",
            gridurl: '/sale/salesCategory/querySCList'
        }
    });

    /*标签管理页面*/
    app.get("/sale/category/tag/:categoryId","operations.salecategory.TagMgmt", "salecategory_querySCById", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "标签管理"
        }
    });

    /*销售类目列表*/
    app.post("/sale/salesCategory/querySCList","salecategory_querySCList");

    /*根据id获取单个销售类目*/
    app.post("/sale/salesCategory/querySCById","salecategory_querySCById");

    /*标签管理列表数据接口*/
    app.post("/sale/salesCategoryLabel/querySCLabelList","salecategory_querySCLabelList");

    /*更新标签接口*/
    app.post("/sale/salesCategoryLabel/updateSCLabel","salecategory_updateSCLabel");

    /*更新销售类目接口*/
    app.post("/sale/salesCategory/updateSC","salecategory_updateSC");

    /*添加销售类目接口*/
    app.post("/sale/salesCategory/addSC","salecategory_addSC");

    /*开关销售类目*/
    app.post("/sale/salesCategory/updateSCStatus","salecategory_updateSCStatus");

    /*删除销售类目*/
    app.post("/sale/salesCategory/delSC","salecategory_delSC");

    /*批量添加标签接口*/
    app.post("/sale/salesCategoryLabel/addSCLabel","salecategory_addSCLabel");


    /**
     * 搜索标签,销售类目绑定搜索标签
     */

    /*标签管理页面*/
    app.get("/sale/category/searchLabel/:categoryId","operations.salecategory.SearchTagMgmt", "salecategory_productSearchLabelList", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "标签管理"
        }
    });
    /*搜索标签列表数据接口*/
    app.post("/searchLabel/productSearchLabelList","salecategory_productSearchLabelList");
    /*销售类目绑定搜索标签列表,修改排序值接口*/
    app.post("/salesCategorySearchLabel/updateSCSearchLabelOrderBy","salecategory_updateSCSearchLabelOrderBy");
    /*销售类目绑定搜索标签接口*/
    app.post("/salesCategorySearchLabel/batchInsertSCSearchLabel","salecategory_batchInsertSCSearchLabel");
    /*销售类目已关联搜索标签列表数据接口*/
    app.post("/salesCategorySearchLabel/querySCSearchLabelList","salecategory_querySCSearchLabelList");
    /*取消销售类目绑定搜索标签接口*/
    app.post("/salesCategorySearchLabel/batchDeleteSCSearchLabel","salecategory_batchDeleteSCSearchLabel");
    /*取消销售类目绑定搜索标签接口*/
    app.post("/salesCategorySearchLabel/deleteSCSearchLabelByCategoryId","salecategory_deleteSCSearchLabelByCategoryId");

    /*搜索资源位直通车管理页面*/
    app.get("/sale/category/resource/:categoryId","operations.salecategory.CategorySource", "salecategory_queryCategorySourceList", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "搜索资源位直通车管理"
        }
    });
    app.post("/categorySource/queryCategorySourceList","salecategory_queryCategorySourceList");
    app.post("/categorySource/insertCategorySourceLink","salecategory_insertCategorySourceLink");
    app.post("/categorySource/deleteCategorySourceLink","salecategory_deleteCategorySourceLink");
    app.post("/categorySource/batchInsertCategorySourceLink","salecategory_batchInsertCategorySourceLink");
    app.post("/categorySource/batchDeleteCategorySourceLink","salecategory_batchDeleteCategorySourceLink");
}