feat : config
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ use App\Service\Api\Login\LogOutService;
|
||||
use App\Service\Api\User\BindPhoneByWxService;
|
||||
use App\Service\Api\User\InviteListService;
|
||||
use App\Service\Api\User\SiteService;
|
||||
use App\Service\Api\User\UnBindPhoneService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
@@ -37,6 +38,11 @@ class UserController extends AbstractController
|
||||
return (new BindPhoneByWxService)->handle();
|
||||
}
|
||||
|
||||
public function unbind_phone()
|
||||
{
|
||||
return (new UnBindPhoneService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
|
||||
Reference in New Issue
Block a user