CouponList.js
2.31 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
73
74
75
76
77
78
/**
*
* Created by yoho on 2016/6/21.
*/
module.exports = {
namespace: "CouponList",
apis: {
/**************************************优惠券管理-庞洁*************************************/
queryCouponList: {
title: "优惠券列表",
url: "/coupon/queryCouponList",
params: {
page: {type: Number},
size: {type: Number},
couponId: {type: Number},
department: {type: Number},
couponName: {type: String},
status: {type: Number}
}
},
getCouponDetailById:{
title: "单张详情",
url: "/coupon/getCouponDetailById",
params: {
couponsId: {type: Number}
}
},
addOrUpdate: {
title: "优惠券新增、修改",
url: "/coupon/addOrUpdate",
params: {
id: {type: Number},
couponType: {type: Number},
couponName: {type: String},
couponNum: {type: Number},
useNum: {type: Number},
department: {type: Number},
startTime: {type: String},
endTime: {type: String},
explains: {type: String},
useLimitType: {type: Number},
useLimit: {type: Number},
couponAmount: {type: Number},
brandLimit: {type: String},
sortLimit: {type: String},
customType: {type: String},
multipleNum: {type: Number},
shopPriceLimits: {type: String},
sknExclude: {type: String}
}
},
reject: {
title: "驳回",
url: "/coupon/reject",
params: {
couponId: {type: Number},
rejectReason: {type: String}
}
},
approve: {
title: "通过",
url: "/coupon/approve",
params: {
couponId: {type: Number}
}
},
invalid: {
title: "作废",
url: "/coupon/invalid",
params: {
couponId: {type: Number},
invalidReason: {type: String}
}
}
}
};