feat : Composite file

This commit is contained in:
2025-09-07 19:36:04 +08:00
parent b106c4a352
commit 714baffaf7
10 changed files with 302 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Controller\Test;
use App\Service\Test\Composite\FileService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;
#[Controller(prefix: 'composite/test')]
class CompositeController
{
/**
* @return array|null
*/
#[RequestMapping(path: 'file', methods: 'GET')]
public function file()
{
return (new FileService)->handle();
}
}