feat: redis
This commit is contained in:
26
app/Controller/Api/GoodController.php
Normal file
26
app/Controller/Api/GoodController.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user