generateLinks.js
999 Bytes
/**
* 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");
}