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.
|
|
<?php
namespace App\Controller\v3;
use App\Controller\BaseController;use App\Service\v3\Interfaces\HorsemanServiceInterface;use Hyperf\Di\Annotation\Inject;
class HorsemanController extends BaseController{ /** * @Inject * @var HorsemanServiceInterface */ protected $horsemanService;
public function getOrderList() { return $this->success($this->horsemanService->getOrderList()); }
public function setHorsemanCoordinate() { $employeesId = $this->request->input('employees_id', -1); $coordinate = $this->request->input('coordinate', -1); return $this->success($this->horsemanService->setHorsemanCoordinate($employeesId,$coordinate)); }
public function getHorsemanCoordinate() { $employeesId = $this->request->input('employees_id', -1); $coordinate = $this->horsemanService->getHorsemanCoordinate($employeesId); return $this->success(['coordinate' => $coordinate]); }
public function getOrderCoordinate() { $globalOrderId = $this->request->input('global_order_id', -1); return $this->success($this->horsemanService->getOrderCoordinate($globalOrderId)); }}
|