feat : user
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\Order\CancelOrderService;
|
||||
use App\Service\Api\Order\CheckCartService;
|
||||
use App\Service\Api\Order\ConfirmationOrderService;
|
||||
use App\Service\Api\Order\OrderListService;
|
||||
use App\Service\Api\Order\PlaceOrderService;
|
||||
use App\Service\Api\Order\RefundOrderService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
@@ -86,8 +87,10 @@ class OrderController extends AbstractController
|
||||
return (new RefundOrderService)->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: 'order_list',methods: 'post')]
|
||||
#[Scene(scene: 'order_list')]
|
||||
public function orderList()
|
||||
{
|
||||
|
||||
return (new OrderListService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\System\CityListService;
|
||||
use App\Service\Api\System\SiteListService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
@@ -23,8 +24,10 @@ class SystemController extends AbstractController
|
||||
return (new SiteListService)->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: 'city',methods: 'GET')]
|
||||
#[Scene(scene: 'city')]
|
||||
public function getCityList()
|
||||
{
|
||||
return (new SiteListService)->handle();
|
||||
return (new CityListService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Request\Api\UserRequest;
|
||||
use App\Service\Api\User\BindPhoneByWxService;
|
||||
use App\Service\Api\User\InviteListService;
|
||||
use App\Service\Api\User\SiteService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
@@ -68,4 +69,14 @@ class UserController extends AbstractController
|
||||
{
|
||||
return (new SiteService)->del();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'invite/list',methods: 'GET')]
|
||||
#[Scene(scene: 'invite_list')]
|
||||
public function inviteList()
|
||||
{
|
||||
return (new InviteListService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user