|
|
@@ -722,6 +722,9 @@ const FIELD_DESC = {
|
|
|
['deepLink', 'String', '深度链接'],
|
|
|
['instructionText', 'String', '提示文案']
|
|
|
],
|
|
|
+ 'couponIssue': [
|
|
|
+ ['data', 'Integer', '成功发放的优惠券数量(如:2表示2张)']
|
|
|
+ ],
|
|
|
'coupon': [
|
|
|
['id', 'Long', '优惠券ID'],
|
|
|
['couponName', 'String', '优惠券名称'],
|
|
|
@@ -1288,7 +1291,7 @@ function renderAdminCouponModule() {
|
|
|
<div class="batch-buttons"><button class="btn btn-warning btn-sm" onclick="runAdminCouponTests()">运行全部优惠券发放测试</button></div>
|
|
|
${testSection('admin-coupon-issue', '发放优惠券', 'POST', 'post', '/api/coupon/issue', '需认证', 'auth-required',
|
|
|
[{label:'模板ID(couponId)', name:'couponId', placeholder:'1', default:'1'},
|
|
|
- {label:'用户ID列表(userIds)', name:'userIds', placeholder:'1,2,3', default:'1', type:'array'}], false, 'coupon', '管理员向指定用户发放优惠券,userIds统一用列表传入,单个用户填1即可')}`;
|
|
|
+ {label:'用户ID列表(userIds)', name:'userIds', placeholder:'1,2,3', default:'1', type:'array'}], false, 'couponIssue', '管理员向指定用户发放优惠券,userIds统一用列表传入,单个用户填1即可')}`;
|
|
|
}
|
|
|
|
|
|
function renderAdminLicenseModule() {
|