feat : pay

This commit is contained in:
2025-02-17 16:46:41 +08:00
parent 1fb7bf4ea7
commit 8e6c6f9cb1
13 changed files with 353 additions and 13 deletions

View File

@@ -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')]