brandCoupon.js
1.56 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
/**
* Created by yoho on 2016/6/21.
*/
module.exports = {
namespace: "BrandCoupon",
apis: {
/************************************品牌优惠券*************************************/
queryList: {
title: "品牌优惠券数据",
url: '/brandCoupon/queryList',
params: {
brandId: {type: String},
status: {type: Number},
couponsId: {type: Number},
page: {type: Number},
size: {type: Number}
}
},
queryByParam: {
title: "单个优惠券",
url: '/brandCoupon/queryByParam',
params: {
id: {type: Number}
}
},
add: {
title: "新增品牌优惠券",
url: '/brandCoupon/add',
params: {
brandName: {type: String},
status: {type: Number},
brandId: {type: Number},
couponsId: {type: Number}
}
},
delete: {
title: "删除品牌优惠券",
url: '/brandCoupon/delete',
params: {
id: {type: Number}
}
},
update: {
title: "编辑品牌优惠券",
url: '/brandCoupon/update',
params: {
brandName: {type: String},
status: {type: Number},
id: {type: Number},
brandId: {type: Number},
couponsId: {type: Number}
}
}
}
};