|
|
@@ -73,9 +73,12 @@ public class OrderController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
- public Order create(@RequestParam Long collectionId, @RequestParam int qty, @RequestParam(required = false) Long addressId, @RequestParam(required = false) Long couponId) {
|
|
|
+ public Order create(@RequestParam Long collectionId, @RequestParam int qty,
|
|
|
+ @RequestParam(required = false) Long addressId,
|
|
|
+ @RequestParam(required = false) Long couponId,
|
|
|
+ @RequestParam(required = false) Long invitor) {
|
|
|
return orderService.create(SecurityUtils.getAuthenticatedUser().getId(),
|
|
|
- collectionId, qty, addressId, couponId);
|
|
|
+ collectionId, qty, addressId, couponId, invitor);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/hide")
|