You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
512 B

<?php
namespace App\Controller;
use App\Request\OrderOnlineRequest;
use Hyperf\Di\Annotation\Inject;
use App\Service\OrderServiceInterface;
class OrderController extends BaseController
{
/**
* @Inject
* @var OrderServiceInterface
*/
protected $orderService;
public function addOnlineOrder(OrderOnlineRequest $request)
{
$orderMainId = $this->orderService->addOnlineOrder($request->validated());
return $this->success(['order_main_id' => $orderMainId]);
}
}