helpContent.js
1.86 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
// exports.domain = "http://172.16.6.236:8080/platform";
exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';
exports.res = [
{
route:'/operations/helpcontent/index',
method:'GET',
view:'pages/help/helpContent',
src:'/help/helpContent'
},
{
route:'/operations/helpcontent/getAllHelpContent',
method:'POST',
url: '/HelpContentRest/getAllHelpContent',
params: [
{name: 'categoryId', type: 'Number'},
{name: 'platform', type: 'string'},
// {name: 'page', type: 'Number'},
// {name: 'size', type: 'Number', def:10}
]
},
{
route:'/operations/helpcontent/addHelpContent',
method:'POST',
url:'/HelpContentRest/addHelpContent',
params: [
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
{
route:'/operations/helpcontent/updateHelpContent',
method:'POST',
url:'/HelpContentRest/updateHelpContent',
params: [
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
{
route:'/operations/helpcontent/deleteHelpContent',
method:'POST',
url:'/HelpContentRest/deleteHelpContent',
params: [
{name: 'id', type: 'Number'}
]
},
{
route:'/operations/helpcontent/getHelpContentByCategoryId',
method:'POST',
url:'/HelpContentRest/getHelpContentByCategoryId',
params:[
{name: 'categoryId', type: 'Number'}
]
},
{
route:'/operations/helpcontent/getSecondCategoryList',
method:'POST',
url:'/HelpCategoryRest/getSecondCategoryList',
params:[]
},
{
route:'/operations/helpcontent/getAllHelpCategory',
method:'POST',
url:'/HelpCategoryRest/getAllHelpCategory',
params:[]
},
{
route:'/operations/helpcontent/getHelpCategory',
method:'POST',
url:'/HelpCategoryRest/getHelpCategory',
params:[]
}
];