platformManage.js
1.42 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
/**
* Created by ty on 2016/3/23.
* 平台管理
*/
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.res = [
{
route: '/resource/platform/index',
method: 'GET',
view: 'pages/sourceManage/platformManage',
src: '/sourceManage/platformManage'
},
{
route: '/resources/findResPlatforms',
method: 'POST',
url: '/resources/findResPlatforms',
params: []
},
{
route: '/resources/addResPlatform',
method: 'POST',
url: '/resources/addResPlatform',
params: [
{name: 'platformName', type: 'string'},
{name: 'platformFlag', type: 'string'},
{name: 'status', type: 'number'}
]
},
{
route: '/resources/updateResPlatform',
method: 'POST',
url: '/resources/updateResPlatform',
params: [
{name: 'platformId', type: 'number'},
{name: 'platformName', type: 'string'},
{name: 'platformFlag', type: 'string'},
{name: 'status', type: 'number'}
]
},
{
route: '/resources/deleteResPlatform',
method: 'POST',
url: '/resources/deleteResPlatform',
params: [
{name: 'platformId', type: 'number'}
]
}
];