generateLinks.js
1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* 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
}
});
}