26 lines
676 B
PHP
26 lines
676 B
PHP
<?php
|
|
|
|
namespace App\Controller\Api;
|
|
|
|
use App\Controller\AbstractController;
|
|
use App\Service\Api\Good\MealListService;
|
|
use App\Service\Api\Good\OptionalListService;
|
|
use Hyperf\HttpServer\Annotation\Controller;
|
|
use Hyperf\HttpServer\Annotation\RequestMapping;
|
|
use Hyperf\Validation\Annotation\Scene;
|
|
|
|
#[Controller(prefix: 'api/good')]
|
|
class GoodController extends AbstractController
|
|
{
|
|
#[RequestMapping(path: 'optional',methods: 'post')]
|
|
public function optional()
|
|
{
|
|
return (new OptionalListService)->handle();
|
|
}
|
|
|
|
#[RequestMapping(path: 'meal',methods: 'post')]
|
|
public function meal()
|
|
{
|
|
return (new MealListService)->handle();
|
|
}
|
|
} |