first commit
This commit is contained in:
19
app/Rpc/v1/IndexService.php
Executable file
19
app/Rpc/v1/IndexService.php
Executable 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user