searchWords.index.js
3.99 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/**
* Created by yoho on 2016/6/20.
* 搜索词 接口定义
*/
module.exports = {
namespace: "searchWords",
apis: {
/*************************************搜索词管理*************************************/
querySearchWords: {
title: "获取所有搜索词数据",
url: '/searchWords/querySearchWords',
params: {
type: {type: Number},
channelIds: {type: String},
startTime: {type: String},
endTime: {type: String},
content: {type: String},
status: {type: Number},
timeStatus: {type: Number},
page: {type: Number},
size: {type: Number}
}
},
addSearchWords: {
title: "新增搜索词",
url: '/searchWords/addSearchWords',
params: {
searchType: {type: Number },
matchPcUrl: { type: String },
matchAppAction: { type: String },
matchAppUrl: { type: String },
type: {type: Number},
content: {type: String},
channelIds: {type: String},
url: {type: String},
startTime: {type: String},
endTime: {type: String},
goodsNum: {type: Number},
sort: {type: Number},
icon: {type: String}
}
},
updateSearchWords: {
title: "编辑搜索词",
url: '/searchWords/updateSearchWords',
params: {
searchType: {type: Number },
matchPcUrl: { type: String },
matchAppAction: { type: String },
matchAppUrl: { type: String },
id: {type: Number},
type: {type: Number},
content: {type: String},
channelIds: {type: String},
url: {type: String},
startTime: {type: String},
endTime: {type: String},
goodsNum: {type: Number},
status: {type: Number},
sort: {type: Number},
icon: {type: String}
}
},
delSearchWords: {
title: "删除搜索词",
url: '/searchWords/delSearchWords',
params: {
id: {type: Number}
}
},
clearSearchWordsCache: {
title: "清除搜索词缓存",
url: '/searchWords/clearSearchWordsCache'
},
/*************************************品牌热搜词管理*************************************/
queryHotBrandList: {
title: "获取所有品牌热搜词数据",
url: '/hotSearchBrand/queryHotBrandList',
params: {
page: {type: Number},
size: {type: Number},
brandName: {type: String},
status: {type: Number}
}
},
addHotBrand: {
title: "添加品牌热搜词",
url: '/hotSearchBrand/addHotBrand',
params: {
brandName: {type: String},
orderBy: {type: Number},
status: {type: Number}
}
},
updateHotBrand: {
title: "编辑品牌热搜词",
url: '/hotSearchBrand/updateHotBrand',
params: {
id: {type: Number},
brandName: {type: String},
orderBy: {type: Number},
status: {type: Number}
}
},
delHotBrand: {
title: "删除品牌热搜词",
url: '/hotSearchBrand/delHotBrand',
params: {
id: {type: Number}
}
},
queryHotBrand: {
title: "查询单个品牌热搜词",
url: '/hotSearchBrand/queryHotBrand',
params: {
id: {type: Number}
}
}
}
};