Files
hyperf_test/app/Controller/Test/AdapterTestController.php
ctexthuang 80ba5dcbf8
Some checks failed
Build Docker / build (push) Has been cancelled
feat : cache Adapter unfinished
2025-09-04 23:16:07 +08:00

34 lines
700 B
PHP

<?php
declare(strict_types=1);
namespace App\Controller\Test;
use App\Service\Test\Adapter\CacheService;
use App\Service\Test\Adapter\PayService;
use App\Service\Test\AdapterTestService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
#[Controller(prefix: 'adapter/test')]
class AdapterTestController
{
/**
* @return array
*/
#[RequestMapping(path: 'pay', methods: 'GET')]
public function pay()
{
return (new PayService)->handle();
}
/**
* @return array
*/
#[RequestMapping(path: 'cache', methods: 'GET')]
public function cache()
{
return (new CacheService)->handle();
}
}