first commit

This commit is contained in:
root
2025-06-18 10:31:43 +08:00
commit d9f820b55d
981 changed files with 449311 additions and 0 deletions

19
app/Rpc/v1/IndexService.php Executable file
View File

@ -0,0 +1,19 @@
<?php
namespace App\Rpc\v1;
use App\FormModel\rpc\v1\RpcIndexModel;
use App\Rpc\BaseService;
use Hyperf\RpcServer\Annotation\RpcService;
// #[RpcService(name: "index", server: "jsonrpc-http", protocol: "jsonrpc-http", publishTo: 'nacos')]
class IndexService extends BaseService
{
public function index(): array
{
$model = new RpcIndexModel();
$data = $model->index();
$response = $this->getResponse()->setPageModule($data);
return $response->send();
}
}