resource.resource.js 2.04 KB
/**
 * Created by ty on 2016/6/20.
 * 资源管理
 */

module.exports=function(app) {

    /*资源管理首页*/
    app.get("/resource/index/index","resource.resourceManage.Index", function () {
        this.$extend = {
            moduleName: "资源管理",
            pageName: "资源管理"
        }
    });

    /*资源内容管理页*/
    app.get("/resource/content/index/:param","resource.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) {
        this.$extend = {
            data:response.data,
            moduleName: "资源管理",
            pageName: "资源内容管理"
        };
    });

    /*资源管理列表*/
    app.post("/resources/queryResource","resourceManage_queryResource");

    /*获取资源分类列表*/
    app.post("/resources/getResSorts","resourceManage_getResSorts");

    /*获取平台列表*/
    app.post("/resources/getResPlatforms","resourceManage_getResPlatforms");

    /*添加/修改资源*/
    app.post("/resources/saveResource","resourceManage_saveResource");

    /*根据id删除资源位*/
    app.post("/resources/deleteResourceById","resourceManage_deleteResourceById");

    /*删除资源位下所有tab*/
    app.post("/resources/deleteAllResourceByCode","resourceManage_deleteAllResourceByCode");

    /*根据id获取资源内容*/
    app.post("/resources/resContentIndex","resourceManage_resContentIndex");

    /*添加资源内容*/
    app.post("/resources/addResContent","resourceManage_addResContent");

    /*根据id删除资源内容楼层*/
    app.post("/resources/delResContent","resourceManage_delResContent");

    /*复制资源内容*/
    app.post("/resources/copyResContent","resourceManage_copyResContent");

    /*更新预发布时间*/
    app.post("/resources/updateResPublishTime","resourceManage_updateResPublishTime");

    /*根据 ids 查询活动*/
    app.post("/resources/querySpecialActivityByIDs","resourceManage_querySpecialActivityByIDs");

    /*验证领券码*/
    app.post("/coupon/batchCheckCoupons","resourceManage_batchCheckCoupons");
}