ShopCoupon.js
1.37 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
/**
* Created by yoho on 2016/6/21.
*/
module.exports = {
namespace: "ShopCoupon",
apis: {
/************************************店铺优惠券*************************************/
queryList: {
title: "店铺优惠券数据",
url: '/shopCoupon/queryList',
params: {
shopId: {type: String},
status: {type: Number},
couponsId: {type: Number},
page: {type: Number},
size: {type: Number}
}
},
queryById: {
title: "单个优惠券",
url: '/shopCoupon/queryById',
params: {
id: {type: Number}
}
},
add: {
title: "新增店铺优惠券",
url: '/shopCoupon/add',
params: {
shopName: {type: String},
status: {type: Number},
shopId: {type: Number},
couponsId: {type: Number}
}
},
update: {
title: "编辑店铺优惠券",
url: '/shopCoupon/update',
params: {
shopName: {type: String},
status: {type: Number},
id: {type: Number},
shopId: {type: Number},
couponsId: {type: Number}
}
}
}
};