noticeManage.js
1.51 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
exports.domain = "http://172.16.6.127:9090";
// exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';
exports.res = [
{
route:'/operations/notice/index',
method:'GET',
view:'pages/notice/noticeManage',
src:'/notice/noticeManage'
},
{
route:'/operations/notice/getList',
method:'POST',
url: '/notice/getList',
params: [
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannel', type: 'string'}
]
},
{
route:'/operations/notice/addNotice',
method:'POST',
url: '/notice/addNotice',
params: [
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannels', type: 'string'},
{name: 'url', type: 'string'},
{name: 'img', type: 'string'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'}
]
},
{
route:'/operations/notice/setStatus',
method:'POST',
url: '/notice/setStatus',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
{
route:'/operations/notice/updateNotice',
method:'POST',
url: '/notice/updateNotice',
params: [
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannels', type: 'string'},
{name: 'url', type: 'string'},
{name: 'img', type: 'string'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'}
]
},
{
route:'/operations/notice/delNotice',
method:'POST',
url: '/notice/delNotice',
params: [
{name: 'id', type: 'Number'}
]
}
];