hotBrands.js
1.88 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
/**
* Created by jiangmin on 16/5/11.
* 热门品牌搜索词
*/
//接口主域
exports.domain = require('../config/common.js').domain;
//exports.domain = "http://172.16.6.214:8088/platform";
//路由配置
exports.res = [
{
//搜索词页面渲染
route: '/hotSearchBrand/index',
method: 'GET',
view: 'pages/hotBrands/index',
src: '/hotBrands/index'
},
//搜索词列表
{
route: '/hotSearchBrand/queryHotBrandList',
method: 'POST',
url: '/hotSearchBrand/queryHotBrandList',
params: [
{name: 'page', type: 'Number', def: '1'},
{name: 'size', type: 'Number', def: '10'},
{name: 'brandName', type: 'String'},
{name: 'status', type: 'Number'}
]
},
{
//添加搜索词
route: '/hotSearchBrand/addHotBrand',
method: 'POST',
url: '/hotSearchBrand/addHotBrand',
params: [
{name: 'brandName', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
{
//搜索词修改
route: '/hotSearchBrand/updateHotBrand',
method: 'POST',
url: '/hotSearchBrand/updateHotBrand',
params: [
{name: 'id', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
{
//删除
route: '/hotSearchBrand/delHotBrand',
method: 'POST',
url: '/hotSearchBrand/delHotBrand',
params: [
{name: 'id', type: 'Number'}
]
},
{
//查询单个
route: '/hotSearchBrand/queryHotBrand',
method: 'POST',
url: '/hotSearchBrand/queryHotBrand',
params: [
{name: 'id', type: 'Number'}
]
}
];