generateLinks.js 1.23 KB
/**
 * Created by ty on 2016/6/23.
 * 生成多个链接
 */

module.exports=function(app) {

    /*生成多个链接页面*/
    app.get("/operations/link/index","operations.generateLinks.Index", function () {
        this.$extend = {
            moduleName: "链接管理",
            pageName: "生成链接",
            url: "/link/generate",
            type: "complex",
            notSingle: true
        }
    });

    /*生成单个链接页面*/
    app.get("/operations/link/single","operations.generateLinks.Index", "resourceManage_getUrlAction", function (response) {
        this.$extend = {
            moduleName: "链接管理",
            pageName: "生成单一链接",
            url: "/link/single",
            type: "single",
            isSingle: true,
            data: response.data
        }
    });

    /*生成多个链接*/
    app.post("/link/generate","generateLinks_generate");

    /*生成单个链接*/
    app.post("/link/single","generateLinks_single");


    /*批量生成链接录入*/
    app.get("/operations/link/batch","operations.generateLinks.Batch",function(){
        this.$extend={
            moduleName:"链接管理",
            pageName:"批量生成链接",
            isPL:false
        }
    });

}