searchWords.js
2.19 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
/**
* Created by wangqianjun on 16/2/3.
*/
//接口主域
exports.domain = require('../config/common.js').domain;
//路由配置
exports.res = [
{
//搜索词页面渲染
route: '/operations/terms/index',
method: 'GET',
view: 'pages/searchWords/index',
src: '/searchWords/index',
data: {
filter: true
}
},
//搜索词列表
{
route: '/operation/terms/searchWordsList',
method: 'POST',
url: '/searchWords/querySearchWords',
params: [
{name: 'page', type: 'Number', def: '1'},
{name: 'size', type: 'Number', def: '10'},
{name: 'type', type: 'Number'},
{name: 'channelIds', type: 'String'},
{name: 'startTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'content', type: 'String'},
{name: 'status', type: 'Number'},
]
},
{
//添加搜索词
route: '/operations/terms/add',
method: 'POST',
url: '/searchWords/addSearchWords',
params: [
{name: 'type', type: 'Number'},
{name: 'content', type: 'String'},
{name: 'channelIds', type: 'String'},
{name: 'url', type: 'String'},
{name: 'startTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'content', type: 'String'},
{name: 'goodsNum', type: 'Number'},
{name: 'sort', type: 'Number'}
]
},
{
//搜索词修改
route: '/operations/terms/modify',
method: 'POST',
url: '/searchWords/updateSearchWords',
params: [
{name: 'id', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'content', type: 'String'},
{name: 'channelIds', type: 'String'},
{name: 'url', type: 'String'},
{name: 'startTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'content', type: 'String'},
{name: 'goodsNum', type: 'Number'},
{name: 'sort', type: 'Number'},
{name: 'status', type: 'Number'},
]
}
];