feat : pay
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Controller\Api;
|
||||
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\Pay\PlacePayService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
@@ -17,11 +18,11 @@ use Hyperf\Validation\Annotation\Scene;
|
||||
])]
|
||||
class PayController extends AbstractController
|
||||
{
|
||||
#[RequestMapping(path: 'order',methods: 'POST')]
|
||||
#[Scene(scene: 'order')]
|
||||
public function order()
|
||||
#[RequestMapping(path: 'pay',methods: 'POST')]
|
||||
#[Scene(scene: 'pay')]
|
||||
public function pay()
|
||||
{
|
||||
|
||||
return (new PlacePayService)->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: 'refund',methods: 'POST')]
|
||||
|
||||
Reference in New Issue
Block a user