123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?php
- namespace App\JsonRpc;
- use Hyperf\RpcClient\AbstractServiceClient;
- class WebsiteService extends AbstractServiceClient implements WebsiteServiceInterface
- {
- /**
- * 定义对应服务提供者的服务名称
- * @var string
- */
- protected string $serviceName = 'WebsiteService';
- /**
- * 定义对应服务提供者的服务协议
- * @var string
- */
- protected string $protocol = 'jsonrpc-http';
- /**
- * @param string $keyword
- * @param int $page
- * @param int $pageSize
- * @return mixed
- */
- public function getWebsitetList(string $keyword, int $page, int $pageSize)
- {
- return $this->__request(__FUNCTION__, compact('keyword','page','pageSize'));
- }
- /**
- * @param array $data
- * @return mixed
- */
- public function createWebsite(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param int $id
- * @param array $data
- * @return mixed
- */
- public function updateWebsite(int $id, array $data)
- {
- return $this->__request(__FUNCTION__,$id, $data);
- }
- /**
- * @param int $id
- * @return mixed
- */
- public function delWebsite(int $id)
- {
- return $this->__request(__FUNCTION__,$id);
- }
- /**
- * @param int $id
- * @return mixed
- */
- public function getWebsiteInfo(int $id)
- {
- return $this->__request(__FUNCTION__,$id);
- }
- /**
- * @param array $data
- * @return array
- */
- public function getWebsiteColumn(array $data): array
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param string $keyword
- * @param int $page
- * @param int $pageSize
- * @return mixed
- */
- public function getWebsiteColumnList(string $keyword, int $page, int $pageSize)
- {
- return $this->__request(__FUNCTION__, compact('keyword','page','pageSize'));
- }
- /**
- * @param array $data
- * @return mixed
- */
- public function createWebsiteColumn(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param int $id
- * @param array $data
- * @return mixed
- */
- public function updateWebsiteColumn(int $id, array $data)
- {
- return $this->__request(__FUNCTION__,$id, $data);
- }
- /**
- * @param int $id
- * @return mixed
- */
- public function delWebsiteColumn(int $id)
- {
- return $this->__request(__FUNCTION__,$id);
- }
- /**
- * @param string $keyword
- * @param int $page
- * @param int $pageSize
- * @return mixed
- */
- public function getWebsiteRoleList(string $keyword, int $page, int $pageSize,int $websiteId)
- {
- return $this->__request(__FUNCTION__, compact('keyword','page','pageSize','websiteId'));
- }
- /**
- * @param array $data
- * @return mixed
- */
- public function createWebsiteRole(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param int $id
- * @param array $data
- * @return mixed
- */
- public function updateWebsiteRole(int $id, array $data)
- {
- return $this->__request(__FUNCTION__,$id, $data);
- }
- /**
- * @param int $id
- * @return mixed
- */
- public function delWebsiteRole(int $id)
- {
- return $this->__request(__FUNCTION__,$id);
- }
- /**
- * @param string $keyword
- * @param int $page
- * @param int $pageSize
- * @return mixed
- */
- public function getWebsiteRoleUserList(string $keyword, int $page, int $pageSize,int $websiteId,int $roleId)
- {
- return $this->__request(__FUNCTION__, compact('keyword','page','pageSize','websiteId','roleId'));
- }
- /**
- * @param array $data
- * @return mixed
- */
- public function createWebsiteRoleUser(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param int $id
- * @param array $data
- * @return mixed
- */
- public function updateWebsiteRoleUser(int $id, array $data)
- {
- return $this->__request(__FUNCTION__,$id, $data);
- }
- /**
- * @param int $id
- * @return mixed
- */
- public function delWebsiteRoleUser(int $id)
- {
- return $this->__request(__FUNCTION__,$id);
- }
- /**
- * @param array $data
- * @return array|mixed
- */
- public function getWebsiteId(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- /**
- * @param array $data
- * @return array|mixed
- */
- public function getWebsiteCategory(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- }
|