|
@@ -7,6 +7,7 @@ const rkey = 'userCoupon';
|
|
const ckey = 'user.userCoupon';
|
|
const ckey = 'user.userCoupon';
|
|
const keyZh = '用户优惠券';
|
|
const keyZh = '用户优惠券';
|
|
const routes = [
|
|
const routes = [
|
|
|
|
+ { method: 'post', path: `${rkey}/giveCoupon`, controller: `${ckey}.giveCoupon`, name: `${ckey}giveCoupon`, zh: `${keyZh}-发送` },
|
|
{ method: 'post', path: `${rkey}/getCoupon/:coupon_id`, controller: `${ckey}.getCoupon`, name: `${ckey}getCoupon`, zh: `${keyZh}-领取` },
|
|
{ method: 'post', path: `${rkey}/getCoupon/:coupon_id`, controller: `${ckey}.getCoupon`, name: `${ckey}getCoupon`, zh: `${keyZh}-领取` },
|
|
{ method: 'get', path: `${rkey}`, controller: `${ckey}.index`, name: `${ckey}Query`, zh: `${keyZh}列表查询` },
|
|
{ method: 'get', path: `${rkey}`, controller: `${ckey}.index`, name: `${ckey}Query`, zh: `${keyZh}列表查询` },
|
|
{ method: 'get', path: `${rkey}/:id`, controller: `${ckey}.show`, name: `${ckey}Show`, zh: `${keyZh}查询` },
|
|
{ method: 'get', path: `${rkey}/:id`, controller: `${ckey}.show`, name: `${ckey}Show`, zh: `${keyZh}查询` },
|