feat : config

This commit is contained in:
2025-03-20 16:29:59 +08:00
parent 7be642f104
commit 66632af855
8 changed files with 138 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Controller\Api;
use App\Controller\AbstractController;
use App\Service\Api\Good\AddStapleFoodInfoService;
use App\Service\Api\Good\MealListService;
use App\Service\Api\Good\OptionalListService;
use Hyperf\HttpServer\Annotation\Controller;
@@ -34,4 +35,15 @@ class GoodController extends AbstractController
{
return (new MealListService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'add_staple_food',methods: 'GET')]
public function add_staple_food()
{
return (new AddStapleFoodInfoService)->handle();
}
}