feat : rank

This commit is contained in:
2025-04-09 10:13:40 +08:00
parent a4a715a9e3
commit 96cad2a73a
6 changed files with 153 additions and 1 deletions

View File

@@ -5,6 +5,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\OptionalInfoService;
use App\Service\Api\Good\OptionalListService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
@@ -46,4 +47,15 @@ class GoodController extends AbstractController
{
return (new AddStapleFoodInfoService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'optional_info',methods: 'GET')]
public function optionalInfo()
{
return (new OptionalInfoService)->handle();
}
}