resource.resource.js
2.04 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* 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");
}