Files
hyperf_test/app/Controller/Test/BridgeController.php
2025-09-07 18:22:41 +08:00

24 lines
460 B
PHP

<?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();
}
}