WebsiteService.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class WebsiteService extends AbstractServiceClient implements WebsiteServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'WebsiteService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param string $keyword
  18. * @param int $page
  19. * @param int $pageSize
  20. * @return mixed
  21. */
  22. public function getWebsitetList(array $data)
  23. {
  24. return $this->__request(__FUNCTION__, $data);
  25. }
  26. /**
  27. * @param array $data
  28. * @return mixed
  29. */
  30. public function createWebsite(array $data)
  31. {
  32. return $this->__request(__FUNCTION__, $data);
  33. }
  34. /**
  35. * @param int $id
  36. * @param array $data
  37. * @return mixed
  38. */
  39. public function updateWebsite(int $id, array $data)
  40. {
  41. return $this->__request(__FUNCTION__,compact('id', 'data'));
  42. }
  43. /**
  44. * @param int $id
  45. * @return mixed
  46. */
  47. public function delWebsite(int $id)
  48. {
  49. return $this->__request(__FUNCTION__,compact('id'));
  50. }
  51. /**
  52. * @param int $id
  53. * @return mixed
  54. */
  55. public function getWebsiteInfo(int $id)
  56. {
  57. return $this->__request(__FUNCTION__,compact('id'));
  58. }
  59. /**
  60. * @param array $data
  61. * @return array
  62. */
  63. public function getWebsiteColumn(array $data): array
  64. {
  65. return $this->__request(__FUNCTION__, $data);
  66. }
  67. /**
  68. * @param string $keyword
  69. * @param int $page
  70. * @param int $pageSize
  71. * @return mixed
  72. */
  73. public function getWebsiteColumnList(array $data)
  74. {
  75. // return $this->__request(__FUNCTION__, compact('keyword','page','pageSize'));
  76. return $this->__request(__FUNCTION__, $data);
  77. }
  78. /**
  79. * @param array $data
  80. * @return mixed
  81. */
  82. public function createWebsiteColumn(array $data)
  83. {
  84. return $this->__request(__FUNCTION__, $data);
  85. }
  86. /**
  87. * @param int $id
  88. * @param array $data
  89. * @return mixed
  90. */
  91. public function updateWebsiteColumn(int $id, array $data)
  92. {
  93. return $this->__request(__FUNCTION__,compact('id', 'data'));
  94. }
  95. /**
  96. * @param int $id
  97. * @return mixed
  98. */
  99. public function delWebsiteColumn(int $id)
  100. {
  101. return $this->__request(__FUNCTION__,compact('id'));
  102. }
  103. /**
  104. * @param string $keyword
  105. * @param int $page
  106. * @param int $pageSize
  107. * @return mixed
  108. */
  109. public function getWebsiteRoleList(string $keyword, int $page, int $pageSize,int $websiteId)
  110. {
  111. return $this->__request(__FUNCTION__, compact('keyword','page','pageSize','websiteId'));
  112. }
  113. /**
  114. * @param array $data
  115. * @return mixed
  116. */
  117. public function createWebsiteRole(array $data)
  118. {
  119. return $this->__request(__FUNCTION__, $data);
  120. }
  121. /**
  122. * @param int $id
  123. * @param array $data
  124. * @return mixed
  125. */
  126. public function updateWebsiteRole(int $id, array $data)
  127. {
  128. return $this->__request(__FUNCTION__,compact('id', 'data'));
  129. }
  130. /**
  131. * @param int $id
  132. * @return mixed
  133. */
  134. public function delWebsiteRole(int $id)
  135. {
  136. return $this->__request(__FUNCTION__,compact('id'));
  137. }
  138. /**
  139. * @param string $keyword
  140. * @param int $page
  141. * @param int $pageSize
  142. * @return mixed
  143. */
  144. public function getWebsiteRoleUserList(string $keyword, int $page, int $pageSize,int $websiteId,int $roleId)
  145. {
  146. return $this->__request(__FUNCTION__, compact('keyword','page','pageSize','websiteId','roleId'));
  147. }
  148. /**
  149. * @param array $data
  150. * @return mixed
  151. */
  152. public function createWebsiteRoleUser(array $data)
  153. {
  154. return $this->__request(__FUNCTION__, $data);
  155. }
  156. /**
  157. * @param int $id
  158. * @param array $data
  159. * @return mixed
  160. */
  161. public function updateWebsiteRoleUser(int $id, array $data)
  162. {
  163. return $this->__request(__FUNCTION__,compact('id', 'data'));
  164. }
  165. /**
  166. * @param int $id
  167. * @return mixed
  168. */
  169. public function delWebsiteRoleUser(int $id)
  170. {
  171. return $this->__request(__FUNCTION__,compact('id'));
  172. }
  173. /**
  174. * @param array $data
  175. * @return array|mixed
  176. */
  177. public function getWebsiteId(array $data)
  178. {
  179. return $this->__request(__FUNCTION__, $data);
  180. }
  181. /**
  182. * @param array $data
  183. * @return array|mixed
  184. */
  185. public function getWebsiteCategory(array $data)
  186. {
  187. return $this->__request(__FUNCTION__, $data);
  188. }
  189. /**
  190. * @param array $data
  191. * @return array|mixed
  192. */
  193. public function getWebsiteAdvertisement(array $data)
  194. {
  195. return $this->__request(__FUNCTION__, $data);
  196. }
  197. /**
  198. * @param array $data
  199. * @return array|mixed
  200. */
  201. public function selectWebsiteDepartment(array $data)
  202. {
  203. return $this->__request(__FUNCTION__, $data);
  204. }
  205. /**
  206. * @param array $data
  207. * @return mixed
  208. */
  209. public function selectWebsiteArea(array $data)
  210. {
  211. return $this->__request(__FUNCTION__, $data);
  212. }
  213. /**
  214. * @param array $data
  215. * @return mixed
  216. */
  217. public function getWebsiteModelCategory(array $data)
  218. {
  219. return $this->__request(__FUNCTION__, $data);
  220. }
  221. /**
  222. * @param array $data
  223. * @return mixed
  224. */
  225. public function selectWebsiteLinks(array $data)
  226. {
  227. return $this->__request(__FUNCTION__, $data);
  228. }
  229. /**
  230. * @param array $data
  231. * @return array|mixed
  232. */
  233. public function getAdminIndex(array $data)
  234. {
  235. return $this->__request(__FUNCTION__, $data);
  236. }
  237. /**
  238. * @param array $data
  239. * @return array|mixed
  240. */
  241. public function getTemplate(array $data)
  242. {
  243. return $this->__request(__FUNCTION__, $data);
  244. }
  245. /**
  246. * @param array $data
  247. * @return array|mixed
  248. */
  249. public function addTemplate(array $data)
  250. {
  251. return $this->__request(__FUNCTION__, $data);
  252. }
  253. /**
  254. * @param array $data
  255. * @return array|mixed
  256. */
  257. public function upTemplate(array $data)
  258. {
  259. return $this->__request(__FUNCTION__, $data);
  260. }
  261. /**
  262. * @param array $data
  263. * @return mixed
  264. */
  265. public function delTemplate(array $data)
  266. {
  267. return $this->__request(__FUNCTION__, $data);
  268. }
  269. /**
  270. * @param array $data
  271. * @return array|mixed
  272. */
  273. public function websiteList(array $data)
  274. {
  275. return $this->__request(__FUNCTION__, $data);
  276. }
  277. /**
  278. * @param array $data
  279. * @return mixed
  280. */
  281. public function addWebsiteCategory(array $data)
  282. {
  283. return $this->__request(__FUNCTION__, $data);
  284. }
  285. /**
  286. * @param array $data
  287. * @return mixed
  288. */
  289. public function delWebsiteCategory(array $data)
  290. {
  291. return $this->__request(__FUNCTION__, $data);
  292. }
  293. /**
  294. * @param array $data
  295. * @return mixed
  296. */
  297. public function delWebsiteAllCategory(array $data)
  298. {
  299. return $this->__request(__FUNCTION__, $data);
  300. }
  301. /**
  302. * @param array $data
  303. * @return mixed
  304. */
  305. public function getWebsiteCategoryOnes(array $data)
  306. {
  307. return $this->__request(__FUNCTION__, $data);
  308. }
  309. /**
  310. * @param array $data
  311. * @return mixed
  312. */
  313. public function upWebsiteCategoryones(array $data)
  314. {
  315. return $this->__request(__FUNCTION__, $data);
  316. }
  317. /**
  318. * @param array $data
  319. * @return mixed
  320. */
  321. public function getWebsiteAllCategory(array $data)
  322. {
  323. return $this->__request(__FUNCTION__, $data);
  324. }
  325. /**
  326. * @param array $data
  327. * @return mixed
  328. */
  329. public function getAdminWebsiteCategory(array $data)
  330. {
  331. return $this->__request(__FUNCTION__, $data);
  332. }
  333. /**
  334. * @param array $data
  335. * @return mixed
  336. */
  337. public function upWebsiteCategory(array $data)
  338. {
  339. return $this->__request(__FUNCTION__, $data);
  340. }
  341. /**
  342. * @param array $data
  343. * @return mixed
  344. */
  345. public function getWebsiteCategoryList(array $data)
  346. {
  347. return $this->__request(__FUNCTION__, $data);
  348. }
  349. /**
  350. * @param array $data
  351. * @return mixed
  352. */
  353. public function checkWebsiteName(array $data)
  354. {
  355. return $this->__request(__FUNCTION__, $data);
  356. }
  357. /**
  358. * @param array $data
  359. * @return mixed
  360. */
  361. public function checkWebsiteUrl(array $data)
  362. {
  363. return $this->__request(__FUNCTION__, $data);
  364. }
  365. /**
  366. * @param array $data
  367. * @return mixed
  368. */
  369. public function getWebsiteFootInfo(array $data)
  370. {
  371. return $this->__request(__FUNCTION__, $data);
  372. }
  373. /**
  374. * @param array $data
  375. * @return mixed
  376. */
  377. public function getWebsiteFooterCategory(array $data)
  378. {
  379. return $this->__request(__FUNCTION__, $data);
  380. }
  381. /**
  382. * @param array $data
  383. * @return mixed
  384. */
  385. public function getWebsiteFooterCategoryList(array $data)
  386. {
  387. return $this->__request(__FUNCTION__, $data);
  388. }
  389. /**
  390. * @param array $data
  391. * @return mixed
  392. */
  393. public function getWebsiteFooterCategoryInfo(array $data)
  394. {
  395. return $this->__request(__FUNCTION__, $data);
  396. }
  397. /**
  398. * @param array $data
  399. * @return mixed
  400. */
  401. public function selectWebsiteCategory(array $data)
  402. {
  403. return $this->__request(__FUNCTION__, $data);
  404. }
  405. /**
  406. * @param array $data
  407. * @return mixed
  408. */
  409. public function getWebsiteCategoryHead(array $data)
  410. {
  411. return $this->__request(__FUNCTION__, $data);
  412. }
  413. /**
  414. * @param array $data
  415. * @return mixed
  416. */
  417. public function getOneWebsiteCategory(array $data)
  418. {
  419. return $this->__request(__FUNCTION__, $data);
  420. }
  421. //20250212 网站标识
  422. public function addWebsiteGroup(array $data)
  423. {
  424. return $this->__request(__FUNCTION__, $data);
  425. }
  426. public function getWebsiteGroupList(array $data)
  427. {
  428. return $this->__request(__FUNCTION__, $data);
  429. }
  430. public function getWebsiteGroupInfo(array $data)
  431. {
  432. return $this->__request(__FUNCTION__, $data);
  433. }
  434. public function deleteWebsiteGroup(array $data)
  435. {
  436. return $this->__request(__FUNCTION__, $data);
  437. }
  438. public function updateWebsiteGroup(array $data)
  439. {
  440. return $this->__request(__FUNCTION__, $data);
  441. }
  442. public function getWebsiteNavList(array $data)
  443. {
  444. return $this->__request(__FUNCTION__, $data);
  445. }
  446. // 20250307 根据网站标识获取导航池
  447. public function getWebsiteNavPool(array $data)
  448. {
  449. return $this->__request(__FUNCTION__, $data);
  450. }
  451. // 20250307 根据网站标识获和导航获取站点
  452. public function getWebsiteNavPoolSite(array $data)
  453. {
  454. return $this->__request(__FUNCTION__, $data);
  455. }
  456. /**
  457. * 获取所有栏目
  458. * @param array $data
  459. * @return array|mixed
  460. */
  461. public function getAllCategory(array $data)
  462. {
  463. return $this->__request(__FUNCTION__, $data);
  464. }
  465. /**修改网站排序
  466. * @param array $data
  467. * @return mixed
  468. */
  469. public function upWebsiteCategorySort(array $data)
  470. {
  471. return $this->__request(__FUNCTION__, $data);
  472. }
  473. // --自助建站-----------fr----------------------start
  474. /**
  475. * @param array $data
  476. * @return mixed
  477. */
  478. public function getWebsiteintel(array $data)
  479. {
  480. return $this->__request(__FUNCTION__, $data);
  481. }
  482. /**
  483. * @param array $data
  484. * @return mixed
  485. */
  486. public function addWebsiteTemplateintel(array $data)
  487. {
  488. return $this->__request(__FUNCTION__, $data);
  489. }
  490. /**
  491. * @param array $data
  492. * @return mixed
  493. */
  494. public function getWebsiteTemplateintel(array $data)
  495. {
  496. return $this->__request(__FUNCTION__, $data);
  497. }
  498. /**
  499. * @param array $data
  500. * @return mixed
  501. */
  502. public function upWebsiteTemplateintel(array $data)
  503. {
  504. return $this->__request(__FUNCTION__, $data);
  505. }
  506. /**
  507. *@param array $data
  508. * @return mixed
  509. */
  510. public function getAllTemplateClass(array $data)
  511. {
  512. return $this->__request(__FUNCTION__, $data);
  513. }
  514. /**
  515. * @param array $data
  516. * @return mixed
  517. */
  518. public function getWebsiteTemplateList(array $data)
  519. {
  520. return $this->__request(__FUNCTION__, $data);
  521. }
  522. /**
  523. * @param array $data
  524. * @return mixed
  525. */
  526. public function addWebsiteTemplateclassintel(array $data)
  527. {
  528. return $this->__request(__FUNCTION__, $data);
  529. }
  530. /**
  531. * @param array $data
  532. * @return mixed
  533. */
  534. public function getWebsiteTemplateclassintel(array $data)
  535. {
  536. return $this->__request(__FUNCTION__, $data);
  537. }
  538. /**
  539. * @param array $data
  540. * @return mixed
  541. */
  542. public function getWebsiteSectorList(array $data)
  543. {
  544. return $this->__request(__FUNCTION__, $data);
  545. }
  546. // --自助建站-----------fr----------------------end
  547. // --底部基础信息-----------fr----------------------start
  548. /**
  549. * @param array $data
  550. * @return mixed
  551. */
  552. public function getWebFootInfo(array $data)
  553. {
  554. return $this->__request(__FUNCTION__, $data);
  555. }
  556. /**
  557. * @param array $data
  558. * @return mixed
  559. */
  560. public function addWebFootInfo(array $data)
  561. {
  562. return $this->__request(__FUNCTION__, $data);
  563. }
  564. /**
  565. * @param array $data
  566. * @return mixed
  567. */
  568. public function upWebFootInfo(array $data)
  569. {
  570. return $this->__request(__FUNCTION__, $data);
  571. }
  572. // --底部基础信息-----------fr----------------------end
  573. /**
  574. * @param array $data
  575. * @return mixed
  576. */
  577. public function getWebsiteParentCategory(array $data)
  578. {
  579. return $this->__request(__FUNCTION__, $data);
  580. }
  581. /**
  582. * @param array $data
  583. * @return mixed
  584. */
  585. public function getWebsiteFootAll(array $data)
  586. {
  587. return $this->__request(__FUNCTION__, $data);
  588. }
  589. /**
  590. * @param array $data
  591. * @return mixed
  592. */
  593. public function getWebsiteHead(array $data)
  594. {
  595. return $this->__request(__FUNCTION__, $data);
  596. }
  597. /**
  598. * @param array $data
  599. * @return mixed
  600. */
  601. public function getWebsiteRoute(array $data)
  602. {
  603. return $this->__request(__FUNCTION__, $data);
  604. }
  605. /*
  606. * @param array $data
  607. * @return mixed
  608. */
  609. public function getStaticResourceList(array $data)
  610. {
  611. return $this->__request(__FUNCTION__, $data);
  612. }
  613. /**
  614. * @param array $data
  615. * @return mixed
  616. */
  617. public function getWebsiteTsbb(array $data)
  618. {
  619. return $this->__request(__FUNCTION__, $data);
  620. }
  621. /**
  622. * @param array $data
  623. * @return array|mixed
  624. */
  625. public function getFooterCategoryList(array $data)
  626. {
  627. return $this->__request(__FUNCTION__, $data);
  628. }
  629. /**
  630. * @param array $data
  631. * @return array|mixed
  632. */
  633. public function getFooterContentList(array $data){
  634. return $this->__request(__FUNCTION__, $data);
  635. }
  636. public function addStaticResource(array $data)
  637. {
  638. return $this->__request(__FUNCTION__, $data);
  639. }
  640. /**
  641. * @param array $data
  642. */
  643. public function getFooterContentInfo(array $data){
  644. return $this->__request(__FUNCTION__, $data);
  645. }
  646. /**
  647. * @param array $data
  648. * @return mixed
  649. */
  650. public function delStaticResource(array $data)
  651. {
  652. return $this->__request(__FUNCTION__, $data);
  653. }
  654. /**
  655. * @param array $data
  656. * @return mixed
  657. */
  658. public function getSizeList(array $data)
  659. {
  660. return $this->__request(__FUNCTION__, $data);
  661. }
  662. /**
  663. * @param array $data
  664. * @return mixed
  665. */
  666. public function addSize(array $data)
  667. {
  668. return $this->__request(__FUNCTION__, $data);
  669. }
  670. /**
  671. * @param array $data
  672. * @return mixed
  673. */
  674. public function delSize(array $data)
  675. {
  676. return $this->__request(__FUNCTION__, $data);
  677. }
  678. /**
  679. * @param array $data
  680. * @return mixed
  681. */
  682. public function upSize(array $data)
  683. {
  684. return $this->__request(__FUNCTION__, $data);
  685. }
  686. /**
  687. * @param array $data
  688. * @return mixed
  689. */
  690. public function getSizeInfo(array $data)
  691. {
  692. return $this->__request(__FUNCTION__, $data);
  693. }
  694. /**
  695. * @param array $data
  696. * @return mixed
  697. */
  698. public function getWhiteRouterList(array $data)
  699. {
  700. return $this->__request(__FUNCTION__, $data);
  701. }
  702. /**
  703. * @param array $data
  704. * @return mixed
  705. */
  706. public function addWhiteRouter(array $data)
  707. {
  708. return $this->__request(__FUNCTION__, $data);
  709. }
  710. /**
  711. * @param array $data
  712. * @return mixed
  713. */
  714. public function delWhiteRouter(array $data)
  715. {
  716. return $this->__request(__FUNCTION__, $data);
  717. }
  718. /**
  719. * @param array $data
  720. * @return mixed
  721. */
  722. public function getWhiteRouterInfo(array $data)
  723. {
  724. return $this->__request(__FUNCTION__, $data);
  725. }
  726. /**
  727. * @param array $data
  728. * @return mixed
  729. */
  730. public function upWhiteRouter(array $data)
  731. {
  732. return $this->__request(__FUNCTION__, $data);
  733. }
  734. }