resourceManage.js
2.74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/**
* Created by ty on 2016/3/30.
* 资源管理路由
*/
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.115:8080/platform';//王伟
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
//exports.domain = 'http://172.16.6.231:8080/platform';
exports.res = [
{
route: "/resource/index/index",
method: "GET",
view: "pages/sourceManage/resourceManage",
src: "/sourceManage/resourceManage"
},
{
route: "/resources/queryResource",
method: "POST",
url: "/resources/queryResource",
params: [
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "page", type: "number"}
]
},
{
route: "/resources/getResSorts",
method: "POST",
url: "/resources/getResSorts",
params: []
},
{
route: "/resources/getResPlatforms",
method: "POST",
url: "/resources/getResPlatforms",
params: []
},
{
route: "/resources/saveResource",
method: "POST",
url: "/resources/saveResource",
params: [
{name: "id", type: "number"},
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "matchCode", type: "string"}
]
},
{
route: "/resources/deleteResourceById",
method: "POST",
url: "/resources/deleteResourceById",
params: [
{name: "id", type: "number"}
]
},
{
//资源内容页面
route: '/resource/content/index/:param',
method: 'GET',
view: 'pages/sourceManage/resourceContentManage',
src: '/sourceManage/resourceContentManage'
},
{
route: "/resources/resContentIndex",
method: "POST",
url: "/resources/resContentIndex",
params: [
{name: "id", type: "number"}
]
},
{
route: "/resources/addResContent",
method: "POST",
url: "/resources/addResContent",
params: [
{name: "content", type: "string"},
{name: "data_id", type: "string"},
{name: "rId", type: "number"}
]
},
{
route: "/resources/delResContent",
method: "POST",
url: "/resources/delResContent",
params: [
{name: "id", type: "number"}
]
}
,
//验证领券码
{
route: "/coupon/batchCheckCoupons",
method: "POST",
url: "/coupon/batchCheckCoupons",
params: [
{name: "params", type: "string"}
]
}
];