feat : Bridge pay
This commit is contained in:
23
app/Controller/Test/BridgeController.php
Normal file
23
app/Controller/Test/BridgeController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller\Test;
|
||||
|
||||
use App\Service\Test\Bridge\PayService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
|
||||
#[Controller(prefix: 'bridge/test')]
|
||||
class BridgeController
|
||||
{
|
||||
/**
|
||||
* 桥接消费
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'pay', methods: 'GET')]
|
||||
public function pay(): array
|
||||
{
|
||||
return (new PayService)->handle();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user