...
|
...
|
@@ -15,6 +15,7 @@ import com.yoho.activity.common.bo.OrderShareBO; |
|
|
import com.yoho.activity.common.vo.UserShareHistoryVO;
|
|
|
import com.yoho.activity.service.IOrderShareActivityService;
|
|
|
import com.yoho.activity.service.IUserShareHistoryService;
|
|
|
import com.yoho.service.model.activity.drawline.response.DrawOrderShareCouponRespBO;
|
|
|
|
|
|
/**
|
|
|
*
|
...
|
...
|
@@ -113,7 +114,28 @@ public class OrderShareController { |
|
|
|
|
|
logger.info("drawOrderShareCoupon enter, mobile: {}, activityId: {}, orderCode: {}", mobile, activityId, orderCode);
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("ok").build();
|
|
|
DrawOrderShareCouponRespBO respBO = orderShareActivityService.drawOrderShareCoupon(mobile, activityId, orderCode);
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(respBO).message("ok").build();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新用户注册(带验证码)并领券
|
|
|
* @param mobile
|
|
|
* @param activityId
|
|
|
* @param orderCode
|
|
|
* @param identifyCode
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(params = "method=app.order.registerAndSendCoupon")
|
|
|
@ResponseBody
|
|
|
public ApiResponse registerAndSendCoupon(@RequestParam(value = "mobile", required = true) String mobile,
|
|
|
@RequestParam(value = "activityId", required = true) int activityId,
|
|
|
@RequestParam(value = "orderCode", required = true) long orderCode,
|
|
|
@RequestParam(value = "identifyCode", required = true) String identifyCode) {
|
|
|
logger.info("registerAndSendCoupon enter, mobile: {}, activityId: {}, orderCode: {}, identifyCode : {}", mobile, activityId, orderCode, identifyCode);
|
|
|
|
|
|
DrawOrderShareCouponRespBO respBO = orderShareActivityService.registerAndSendCoupon(mobile, activityId, orderCode, identifyCode);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(respBO).message("ok").build();
|
|
|
}
|
|
|
} |
...
|
...
|
|