CouponList.js
4.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/**
*
* 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},
couponType: {type: Number},
feeSharingType: {type: Number},
startTimeStr: {type: String},
endTimeStr: {type: String}
}
},
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},
limitStartTime: {type: String},
startTime: {type: String},
endTime: {type: String},
tPlusN: {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},
shopLimit: {type: String},
feeSharingType: {type: Number},
feeSharingRatio: {type: Number},
productLimit: {type: String},
isNew: {type: Number},
isUseLimitRule: {type: String},
prdPoolLimit: {type: String},
cusPublicCouponName: {type: String},
publicCouponType: {type: Number},
channel: {type: String},
showScope : {type: String},
checkRequired: {type: Number},
}
},
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}
}
},
getOperationRecords: {
title: "查询优惠券操作记录",
url: "/coupon/queryOperationRecord",
params: {
couponsId: {type: Number}
}
},
updateCouponsUseRule: {
title: "更新第三方信息",
url: "/coupon/updateCouponsUseRule",
params: {
couponId: {type: Number},
thirdType: {type: Number},
thirdId: {type: String},
publicNumberType: {type: Number}
}
},
updateH5Link: {
title: "更新微信卡券H5链接",
url: "/coupon/updateH5Link",
params: {
h5Link: {type: String},
miniappPages: {type: String},
cardId: {type: String},
publicNumberCode: {type: Number}
}
},
cleanPrdLimit: {
title: "清除指定商品",
url: "/coupon/cleanPrdLimit",
params: {
param: {type: Number}
}
},
queryChannelGroups: {
title: "券可用渠道",
url: "/channel/queryChannelGroups"
}
}
};