brandCoupon.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
/**
* Created by Arthur on 16/5/26.
*/
exports.domain = require('../config/common.js').domain;
//exports.domain ='http://172.16.6.120:8088/platform';//曹燕
exports.res = [
{// 品牌发券空白页
route: '/brandCoupons/index',
method: 'GET',
view: 'pages/operations/brandCoupon',
src: '/operations/brandCoupon',
data: {
iscreate: true
}
}, {
// 列表数据
route: '/brandCoupon/queryList',
method: 'POST',
url: '/brandCoupon/queryList',
params: [
{name: 'brandId', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'couponsId', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{
route: '/brandCoupon/queryByParam',
method: 'POST',
url: '/brandCoupon/queryByParam',
params: [
{name: 'id', type: 'Number'}
]
},
{
// 新增
route: '/brandCoupon/add',
method: 'POST',
url: '/brandCoupon/add',
params: [
{name: 'brandName', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'couponsId', type: 'Number'}
]
}, {
// 删除
route: '/brandCoupon/delete',
method: 'POST',
url: '/brandCoupon/delete',
params: [
{name: 'id', type: 'Number'}
]
},{
// 修改
route: '/brandCoupon/update',
method: 'POST',
url: '/brandCoupon/update',
params: [
{name: 'brandName', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'id', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'couponsId', type: 'Number'}
]
}
];