staticFileManager.js
1.78 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
/**
* Created by wangqianjun on 16/5/16.
*/
exports.domain = require('../config/common.js').domain;
exports.res = [
{//逛-> 资讯管理 空白页
route: '/operations/staticFileManager/index',
method: 'GET',
view: 'pages/operations/staticFileManager',
src: '/operations/staticFileManager',
data: {
iscreate: true
}
}, { // 新增
route: '/staticFileManage/add',
method: 'POST',
url: '/staticFileManage/add',
params: [
{name: 'fileType', type: 'Number'},
{name: 'pageTitle', type: 'String'},
{name: 'keyWord', type: 'String'},
{name: 'pageDesc', type: 'String'},
{name: 'content', type: 'String'}
]
}, { // 删除
route: '/staticFileManage/deleteById',
method: 'POST',
url: '/staticFileManage/deleteById',
params: [
{name: 'id', type: 'Number'}
]
}, { // 修改
route: '/staticFileManage/update',
method: 'POST',
url: '/staticFileManage/update',
params: [
{name: 'id', type: 'Number'},
{name: 'fileType', type: 'Number'},
{name: 'pageTitle', type: 'String'},
{name: 'keyWord', type: 'String'},
{name: 'pageDesc', type: 'String'},
{name: 'content', type: 'String'}
]
}, { // 查询
route: '/staticFileManage/queryByCondition',
method: 'POST',
url: '/staticFileManage/queryByCondition',
params: [
{name: 'fileType', type: 'Number'},
{name: 'beginTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}
];