WebsiteService.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  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 checkWebsiteBuild(array $data)
  487. {
  488. return $this->__request(__FUNCTION__, $data);
  489. }
  490. /**
  491. * @param array $data
  492. * @return mixed
  493. */
  494. public function checkWebsiteEdit(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 getWebsiteAllinfo(array $data)
  610. {
  611. return $this->__request(__FUNCTION__, $data);
  612. }
  613. /*
  614. * @param array $data
  615. * @return mixed
  616. */
  617. public function getStaticResourceList(array $data)
  618. {
  619. return $this->__request(__FUNCTION__, $data);
  620. }
  621. /**
  622. * @param array $data
  623. * @return mixed
  624. */
  625. public function getWebsiteTsbb(array $data)
  626. {
  627. return $this->__request(__FUNCTION__, $data);
  628. }
  629. /**
  630. * @param array $data
  631. * @return array|mixed
  632. */
  633. public function getFooterCategoryList(array $data)
  634. {
  635. return $this->__request(__FUNCTION__, $data);
  636. }
  637. /**
  638. * @param array $data
  639. * @return array|mixed
  640. */
  641. public function getFooterContentList(array $data)
  642. {
  643. return $this->__request(__FUNCTION__, $data);
  644. }
  645. public function addStaticResource(array $data)
  646. {
  647. return $this->__request(__FUNCTION__, $data);
  648. }
  649. /**
  650. * @param array $data
  651. */
  652. public function getFooterContentInfo(array $data)
  653. {
  654. return $this->__request(__FUNCTION__, $data);
  655. }
  656. /**
  657. * @param array $data
  658. * @return mixed
  659. */
  660. public function delStaticResource(array $data)
  661. {
  662. return $this->__request(__FUNCTION__, $data);
  663. }
  664. /**
  665. * @param array $data
  666. * @return mixed
  667. */
  668. public function getSizeList(array $data)
  669. {
  670. return $this->__request(__FUNCTION__, $data);
  671. }
  672. /**
  673. * @param array $data
  674. * @return mixed
  675. */
  676. public function addSize(array $data)
  677. {
  678. return $this->__request(__FUNCTION__, $data);
  679. }
  680. /**
  681. * @param array $data
  682. * @return mixed
  683. */
  684. public function delSize(array $data)
  685. {
  686. return $this->__request(__FUNCTION__, $data);
  687. }
  688. /**
  689. * @param array $data
  690. * @return mixed
  691. */
  692. public function upSize(array $data)
  693. {
  694. return $this->__request(__FUNCTION__, $data);
  695. }
  696. /**
  697. * @param array $data
  698. * @return mixed
  699. */
  700. public function getSizeInfo(array $data)
  701. {
  702. return $this->__request(__FUNCTION__, $data);
  703. }
  704. /**
  705. * @param array $data
  706. * @return mixed
  707. */
  708. public function getWhiteRouterList(array $data)
  709. {
  710. return $this->__request(__FUNCTION__, $data);
  711. }
  712. /**
  713. * @param array $data
  714. * @return mixed
  715. */
  716. public function addWhiteRouter(array $data)
  717. {
  718. return $this->__request(__FUNCTION__, $data);
  719. }
  720. /**
  721. * @param array $data
  722. * @return mixed
  723. */
  724. public function delWhiteRouter(array $data)
  725. {
  726. return $this->__request(__FUNCTION__, $data);
  727. }
  728. /**
  729. * @param array $data
  730. * @return mixed
  731. */
  732. public function getWhiteRouterInfo(array $data)
  733. {
  734. return $this->__request(__FUNCTION__, $data);
  735. }
  736. /**
  737. * @param array $data
  738. * @return mixed
  739. */
  740. public function upWhiteRouter(array $data)
  741. {
  742. return $this->__request(__FUNCTION__, $data);
  743. }
  744. /**
  745. * @param array $data
  746. * @return mixed
  747. */
  748. public function cloneWebsite(array $data)
  749. {
  750. return $this->__request(__FUNCTION__, $data);
  751. }
  752. /**
  753. * @param array $data
  754. * @return mixed
  755. */
  756. public function getWebsiteAdkey(array $data)
  757. {
  758. return $this->__request(__FUNCTION__, $data);
  759. }
  760. /**
  761. * @param array $data
  762. * @return mixed
  763. */
  764. public function upStaticResource(array $data)
  765. {
  766. return $this->__request(__FUNCTION__, $data);
  767. }
  768. /**
  769. * @param array $data
  770. * @return mixed
  771. */
  772. public function upWebsiteStatus(array $data)
  773. {
  774. return $this->__request(__FUNCTION__, $data);
  775. }
  776. /**
  777. * @param array $data
  778. * @return mixed
  779. */
  780. public function updateWebsiteStatus(array $data)
  781. {
  782. return $this->__request(__FUNCTION__, $data);
  783. }
  784. /**
  785. * @param array $data
  786. * @return mixed
  787. */
  788. public function delWebsiteUrl(array $data)
  789. {
  790. return $this->__request(__FUNCTION__, $data);
  791. }
  792. public function checkPath(array $data)
  793. {
  794. return $this->__request(__FUNCTION__, $data);
  795. }
  796. }