123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace App\JsonRpc;
- use Hyperf\RpcClient\AbstractServiceClient;
- class AuthorityService extends AbstractServiceClient implements AuthorityServiceInterface
- {
- /**
- * 定义对应服务提供者的服务名称
- * @var string
- */
- protected string $serviceName = 'AuthorityService';
- /**
- * 定义对应服务提供者的服务协议
- * @var string
- */
- protected string $protocol = 'jsonrpc-http';
- /**
- * @param array $data
- * @return array
- */
- public function getMenuList(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array
- */
- public function getMenuInfo(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array
- */
- public function updateMenu(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array
- */
- public function delMenu(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array
- */
- public function addMenu(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array
- */
- public function getRecursionMenu(array $data )
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array|mixed
- */
- public function getAllMenuList(array $data )
- {
- return $this->__request(__FUNCTION__, $data);
- }
- }
|