searchWords.index.js
1.92 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 yoho on 2016/6/20.
* 搜索词管理
*/
module.exports = function (app) {
/*************************************搜索词管理*************************************/
//列表页
app.get("/operations/terms/index", "searchWords.SearchWords.Index", "resourceManage_getUrlAction", function(response){
this.$extend={
actions: response.data,
moduleName:'搜索词管理',
pageName:'品牌热搜词'
}
});
//获取所有搜索词
app.post("/operation/terms/searchWordsList", "searchWords_querySearchWords");
//添加搜索词信息
app.post("/operations/terms/add", "searchWords_addSearchWords");
//编辑搜索词信息
app.post("/operations/terms/modify", "searchWords_updateSearchWords");
/*************************************品牌热搜词*************************************/
//列表页
app.get("/hotSearchBrand/index", "searchWords.HotBrand.Index",function(){
this.$extend={
moduleName:'搜索词管理',
pageName:'品牌热搜词'
}
});
//获取所有搜索词
app.post("/hotSearchBrand/queryHotBrandList", "searchWords_queryHotBrandList");
//添加搜索词信息
app.post("/hotSearchBrand/addHotBrand", "searchWords_addHotBrand");
//编辑搜索词信息
app.post("/hotSearchBrand/updateHotBrand", "searchWords_updateHotBrand");
//删除搜索词信息
app.post("/hotSearchBrand/delHotBrand", "searchWords_delHotBrand");
//查询单个搜索词信息
app.post("/hotSearchBrand/queryHotBrand", "searchWords_queryHotBrand");
//删除默认搜索词
app.post("/hotSearchBrand/delSearchWords", "searchWords_delSearchWords");
//清除默认搜索词
app.post("/hotSearchBrand/clearSearchWordsCache", "searchWords_clearSearchWordsCache");
app.post("/salesCategory/querySCListByLevel", "matchWords_querySCListByLevel");
};