Commit 0764491c authored by hezhen's avatar hezhen

123

parent 29677785
...@@ -95,14 +95,14 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz> ...@@ -95,14 +95,14 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
} }
@ApiOperation("领取优惠卷") @ApiOperation("领取优惠卷")
@RequestMapping(value = "/coupon/led", method = RequestMethod.POST) @RequestMapping(value = "ledCoupon/{couponId}", method = RequestMethod.POST)
public ObjectRestResponse led() { public ObjectRestResponse ledCoupon(@PathVariable Integer couponId) {
AppUserDTO userInfo = getUserInfo(); AppUserDTO userInfo = getUserInfo();
Integer userId = userInfo.getUserid(); Integer userId = userInfo.getUserid();
if (userId == null) { if (userId == null) {
return ObjectRestResponse.createDefaultFail(); return ObjectRestResponse.createDefaultFail();
} }
return joinBiz.receiveCoupn(userId); return ObjectRestResponse.succ(baseBiz.userLedCoupon(userId,couponId));
} }
@RequestMapping(value = "/getCoupon", method = RequestMethod.GET) @RequestMapping(value = "/getCoupon", method = RequestMethod.GET)
...@@ -130,4 +130,17 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz> ...@@ -130,4 +130,17 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
} }
@ApiOperation("领取优惠卷")
@RequestMapping(value = "/coupon/led", method = RequestMethod.POST)
public ObjectRestResponse led() {
AppUserDTO userInfo = getUserInfo();
Integer userId = userInfo.getUserid();
if (userId == null) {
return ObjectRestResponse.createDefaultFail();
}
return joinBiz.receiveCoupn(userId);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment