notice.js
1.93 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
/**
* Created by ty on 2016/6/23.
* 公告管理
*/
module.exports={
namespace:"notice",
apis:{
getList:{
title: "获取公告列表",
url: '/notice/getList',
params: [
{name: 'page', type: 'number'},
{name: 'size', type: 'number'},
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannel', type: 'string'}
]
},
addNotice:{
title: "添加公告",
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'}
]
},
setStatus:{
title: "更改公告状态",
url: '/notice/setStatus',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
updateNotice:{
title: "更新公告",
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'}
]
},
delNotice:{
title: "删除公告",
url: '/notice/delNotice',
params: [
{name: 'id', type: 'Number'}
]
}
}
}