NewsService.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class NewsService extends AbstractServiceClient implements NewsServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'NewsService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return mixed
  19. */
  20. public function getCategoryList(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. /**
  25. * @param array $data
  26. * @return mixed
  27. */
  28. public function myCategoryList(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. /**
  33. * @param array $data
  34. * @return array
  35. */
  36. public function categoryList(array $data)
  37. {
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. /**
  41. * @param array $data
  42. * @return array
  43. */
  44. public function addCategory(array $data)
  45. {
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. /**
  49. * @param array $data
  50. * @return array
  51. */
  52. public function delCategory(array $data)
  53. {
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. /**
  57. * @param array $data
  58. * @return array
  59. */
  60. public function updateCategory(array $data)
  61. {
  62. return $this->__request(__FUNCTION__, $data);
  63. }
  64. /**
  65. * @param array $data
  66. * @return array
  67. */
  68. public function getArticleList(array $data)
  69. {
  70. return $this->__request(__FUNCTION__, $data);
  71. }
  72. /**
  73. * @param array $data
  74. * @return array
  75. */
  76. public function addArticle(array $data)
  77. {
  78. return $this->__request(__FUNCTION__, $data);
  79. }
  80. /**
  81. * @param array $data
  82. * @return array
  83. */
  84. public function delArticle(array $data)
  85. {
  86. return $this->__request(__FUNCTION__, $data);
  87. }
  88. /**
  89. * @param array $data
  90. * @return array
  91. */
  92. public function updateArticle(array $data)
  93. {
  94. return $this->__request(__FUNCTION__, $data);
  95. }
  96. /**
  97. * @param array $data
  98. * @return array
  99. */
  100. public function getArticleInfo(array $data)
  101. {
  102. return $this->__request(__FUNCTION__, $data);
  103. }
  104. /**
  105. * @param array $data
  106. * @return array|mixed
  107. */
  108. public function getCategoryInfo(array $data)
  109. {
  110. return $this->__request(__FUNCTION__, $data);
  111. }
  112. /**
  113. * 更新资讯状态
  114. * @param array $data
  115. * @return mixed
  116. */
  117. public function upArticleStatus(array $data)
  118. {
  119. return $this->__request(__FUNCTION__, $data);
  120. }
  121. /**
  122. * @param array $data
  123. * @return array
  124. */
  125. public function getWebsiteArticlett(array $data)
  126. {
  127. return $this->__request(__FUNCTION__, $data);
  128. }
  129. /**
  130. * @param array $data
  131. * @return array
  132. */
  133. public function getWebsiteModelArticles(array $data)
  134. {
  135. return $this->__request(__FUNCTION__, $data);
  136. }
  137. //20250226 产品列表
  138. public function getGoodList(array $data)
  139. {
  140. return $this->__request(__FUNCTION__, $data);
  141. }
  142. public function getGoodInfo(array $data)
  143. {
  144. return $this->__request(__FUNCTION__, $data);
  145. }
  146. public function addGood(array $data)
  147. {
  148. return $this->__request(__FUNCTION__, $data);
  149. }
  150. public function delGood(array $data)
  151. {
  152. return $this->__request(__FUNCTION__, $data);
  153. }
  154. public function updateGood(array $data)
  155. {
  156. return $this->__request(__FUNCTION__, $data);
  157. }
  158. //20250226 产品列表
  159. //20250306 求职信息
  160. public function getJobHuntingList(array $data)
  161. {
  162. return $this->__request(__FUNCTION__, $data);
  163. }
  164. public function getJobHuntingApply(array $data)
  165. {
  166. return $this->__request(__FUNCTION__, $data);
  167. }
  168. public function getJobHuntingInfo(array $data)
  169. {
  170. return $this->__request(__FUNCTION__, $data);
  171. }
  172. public function addJobHunting(array $data)
  173. {
  174. return $this->__request(__FUNCTION__, $data);
  175. }
  176. public function delJobHunting(array $data)
  177. {
  178. return $this->__request(__FUNCTION__, $data);
  179. }
  180. public function updateJobHunting(array $data)
  181. {
  182. return $this->__request(__FUNCTION__, $data);
  183. }
  184. public function getJobHuntingData(array $data)
  185. {
  186. return $this->__request(__FUNCTION__, $data);
  187. }
  188. //20250306 求职信息
  189. /**
  190. * @param array $data
  191. * @return array|mixed
  192. */
  193. public function checkCategoryName(array $data)
  194. {
  195. return $this->__request(__FUNCTION__, $data);
  196. }
  197. /**
  198. * @param array $data
  199. * @return array
  200. */
  201. public function getWebsiteArticleList(array $data)
  202. {
  203. return $this->__request(__FUNCTION__, $data);
  204. }
  205. /**
  206. * @param array $data
  207. * @return array
  208. */
  209. public function selectWebsiteArticleInfo(array $data)
  210. {
  211. return $this->__request(__FUNCTION__, $data);
  212. }
  213. /**
  214. * @param array $data
  215. * @return mixed
  216. */
  217. public function getWebsiteSurvey(array $data)
  218. {
  219. return $this->__request(__FUNCTION__, $data);
  220. }
  221. /**
  222. * @param array $data
  223. * @return mixed
  224. */
  225. public function addWebsiteSurveyOption(array $data)
  226. {
  227. return $this->__request(__FUNCTION__, $data);
  228. }
  229. /**
  230. * @param array $data
  231. * @return mixed
  232. */
  233. public function addWebsiteSurveyVote(array $data)
  234. {
  235. return $this->__request(__FUNCTION__, $data);
  236. }
  237. /**
  238. * @param array $data
  239. * @return mixed
  240. */
  241. public function getSurveyList(array $data)
  242. {
  243. return $this->__request(__FUNCTION__, $data);
  244. }
  245. /**
  246. * @param array $data
  247. * @return mixed
  248. */
  249. public function getSurveyInfo(array $data)
  250. {
  251. return $this->__request(__FUNCTION__, $data);
  252. }
  253. /**
  254. * @param array $data
  255. * @return mixed
  256. */
  257. public function selectWebsiteArticle(array $data)
  258. {
  259. return $this->__request(__FUNCTION__, $data);
  260. }
  261. /**
  262. * @param array $data
  263. * @return mixed
  264. */
  265. public function getWebsiteCatidArticle(array $data)
  266. {
  267. return $this->__request(__FUNCTION__, $data);
  268. }
  269. /**
  270. * @param array $data
  271. * @return mixed
  272. */
  273. public function getWebsiteAllArticle(array $data)
  274. {
  275. return $this->__request(__FUNCTION__, $data);
  276. }
  277. /**
  278. * @param array $data
  279. * @return mixed
  280. */
  281. public function getWebsiteArticles(array $data)
  282. {
  283. return $this->__request(__FUNCTION__, $data);
  284. }
  285. /**
  286. * @param array $data
  287. * @return mixed
  288. */
  289. public function getWebsiteshop(array $data)
  290. {
  291. return $this->__request(__FUNCTION__, $data);
  292. }
  293. /**
  294. * @param array $data
  295. * @return mixed
  296. */
  297. public function getWebsiteshopCat(array $data)
  298. {
  299. return $this->__request(__FUNCTION__, $data);
  300. }
  301. /**
  302. * @param array $data
  303. * @return mixed
  304. */
  305. public function getWebsiteshopInfo(array $data)
  306. {
  307. return $this->__request(__FUNCTION__, $data);
  308. }
  309. /**
  310. * @param array $data
  311. * @return mixed
  312. */
  313. public function getWebsiteshopList(array $data)
  314. {
  315. return $this->__request(__FUNCTION__, $data);
  316. }
  317. /**
  318. * @param array $data
  319. * @return mixed
  320. */
  321. public function getWebsiteBook(array $data)
  322. {
  323. return $this->__request(__FUNCTION__, $data);
  324. }
  325. /**
  326. * @param array $data
  327. * @return mixed
  328. */
  329. public function getWebsiteBookList(array $data)
  330. {
  331. return $this->__request(__FUNCTION__, $data);
  332. }
  333. /**
  334. * @param array $data
  335. * @return mixed
  336. */
  337. public function getWebsiteBookInfo(array $data)
  338. {
  339. return $this->__request(__FUNCTION__, $data);
  340. }
  341. /**
  342. * @param array $data
  343. * @return mixed
  344. */
  345. public function getWebsiteJob(array $data)
  346. {
  347. return $this->__request(__FUNCTION__, $data);
  348. }
  349. /**
  350. * @param array $data
  351. * @return mixed
  352. */
  353. public function getWebsiteJobList(array $data)
  354. {
  355. return $this->__request(__FUNCTION__, $data);
  356. }
  357. /**
  358. * @param array $data
  359. * @return mixed
  360. */
  361. public function getWebsiteJobInfo(array $data)
  362. {
  363. return $this->__request(__FUNCTION__, $data);
  364. }
  365. /**
  366. * @param array $data
  367. * @return mixed
  368. */
  369. public function getWebsiteJobApply(array $data)
  370. {
  371. return $this->__request(__FUNCTION__, $data);
  372. }
  373. /**
  374. * @param array $data
  375. * @return mixed
  376. */
  377. public function getWebsiteJobResume(array $data)
  378. {
  379. return $this->__request(__FUNCTION__, $data);
  380. }
  381. /**
  382. * @param array $data
  383. * @return mixed
  384. */
  385. public function test(array $data)
  386. {
  387. return $this->__request(__FUNCTION__, $data);
  388. }
  389. //20250324 通知,公告,消息
  390. public function getNoticeList(array $data)
  391. {
  392. return $this->__request(__FUNCTION__, $data);
  393. }
  394. public function getNoticeInfo(array $data)
  395. {
  396. return $this->__request(__FUNCTION__, $data);
  397. }
  398. public function addNotice(array $data): array
  399. {
  400. return $this->__request(__FUNCTION__, $data);
  401. }
  402. public function updateNotice(array $data): array
  403. {
  404. return $this->__request(__FUNCTION__, $data);
  405. }
  406. public function deleteNotice(array $data): array
  407. {
  408. return $this->__request(__FUNCTION__, $data);
  409. }
  410. public function getMSG(array $data)
  411. {
  412. return $this->__request(__FUNCTION__, $data);
  413. }
  414. public function getComplaintList(array $data)
  415. {
  416. return $this->__request(__FUNCTION__, $data);
  417. }
  418. public function getComplaintInfo(array $data)
  419. {
  420. return $this->__request(__FUNCTION__, $data);
  421. }
  422. public function addComplaint(array $data): array
  423. {
  424. return $this->__request(__FUNCTION__, $data);
  425. }
  426. public function updateComplaint(array $data): array
  427. {
  428. return $this->__request(__FUNCTION__, $data);
  429. }
  430. public function deleteComplaint(array $data): array
  431. {
  432. return $this->__request(__FUNCTION__, $data);
  433. }
  434. public function updateJobHuntingStatus(array $data): array
  435. {
  436. return $this->__request(__FUNCTION__, $data);
  437. }
  438. public function updateNoticeStatus(array $data): array
  439. {
  440. return $this->__request(__FUNCTION__, $data);
  441. }
  442. public function updateComplaintStatus(array $data): array
  443. {
  444. return $this->__request(__FUNCTION__, $data);
  445. }
  446. public function updateGoodStatus(array $data): array
  447. {
  448. return $this->__request(__FUNCTION__, $data);
  449. }
  450. public function getDUser(array $data): array
  451. {
  452. return $this->__request(__FUNCTION__, $data);
  453. }
  454. //20250324 通知,公告,消息
  455. /**
  456. * @param array $data
  457. * @return mixed
  458. */
  459. public function getJobRecruitingList(array $data)
  460. {
  461. return $this->__request(__FUNCTION__, $data);
  462. }
  463. /**
  464. * @param array $data
  465. * @return mixed
  466. */
  467. public function getJobRecruitingInfo(array $data)
  468. {
  469. return $this->__request(__FUNCTION__, $data);
  470. }
  471. /**
  472. * @param array $data
  473. * @return mixed
  474. */
  475. public function addJobRecruiting(array $data)
  476. {
  477. return $this->__request(__FUNCTION__, $data);
  478. }
  479. /**
  480. * @param array $data
  481. * @return mixed
  482. */
  483. public function getJobRecruitingArea(array $data)
  484. {
  485. return $this->__request(__FUNCTION__, $data);
  486. }
  487. /**
  488. * @param array $data
  489. * @return mixed
  490. */
  491. public function getIndustry(array $data)
  492. {
  493. return $this->__request(__FUNCTION__, $data);
  494. }
  495. /**
  496. * @param array $data
  497. * @return mixed
  498. */
  499. public function getPositionList(array $data)
  500. {
  501. return $this->__request(__FUNCTION__, $data);
  502. }
  503. /**
  504. * @param array $data
  505. * @return mixed
  506. */
  507. public function getJobNature(array $data)
  508. {
  509. return $this->__request(__FUNCTION__, $data);
  510. }
  511. /**
  512. * @param array $data
  513. * @return mixed
  514. */
  515. public function getExperience(array $data)
  516. {
  517. return $this->__request(__FUNCTION__, $data);
  518. }
  519. /**
  520. * @param array $data
  521. * @return mixed
  522. */
  523. public function getEducation(array $data)
  524. {
  525. return $this->__request(__FUNCTION__, $data);
  526. }
  527. /**
  528. * @param array $data
  529. * @return mixed
  530. */
  531. public function getSalary(array $data)
  532. {
  533. return $this->__request(__FUNCTION__, $data);
  534. }
  535. /**
  536. * @param array $data
  537. * @return mixed
  538. */
  539. public function getLanguage(array $data)
  540. {
  541. return $this->__request(__FUNCTION__, $data);
  542. }
  543. /**
  544. * @param array $data
  545. * @return mixed
  546. */
  547. public function getLevel(array $data)
  548. {
  549. return $this->__request(__FUNCTION__, $data);
  550. }
  551. /**
  552. * @param array $data
  553. * @return mixed
  554. */
  555. public function getCompanySize(array $data)
  556. {
  557. return $this->__request(__FUNCTION__, $data);
  558. }
  559. /**
  560. * @param array $data
  561. * @return mixed
  562. */
  563. public function getCompanyNature(array $data)
  564. {
  565. return $this->__request(__FUNCTION__, $data);
  566. }
  567. /**
  568. * @param array $data
  569. * @return mixed
  570. */
  571. public function upJobRecruiting(array $data)
  572. {
  573. return $this->__request(__FUNCTION__, $data);
  574. }
  575. /**
  576. * @param array $data
  577. * @return mixed
  578. */
  579. public function delJobRecruiting(array $data)
  580. {
  581. return $this->__request(__FUNCTION__, $data);
  582. }
  583. /**
  584. * @param array $data
  585. * @return mixed
  586. */
  587. public function getJobCompany(array $data)
  588. {
  589. return $this->__request(__FUNCTION__, $data);
  590. }
  591. /**
  592. * @param array $data
  593. * @return mixed
  594. */
  595. public function upJobCompany(array $data)
  596. {
  597. return $this->__request(__FUNCTION__, $data);
  598. }
  599. /**
  600. * @param array $data
  601. * @return mixed
  602. */
  603. public function checkJobRecruiting(array $data)
  604. {
  605. return $this->__request(__FUNCTION__, $data);
  606. }
  607. /**
  608. * @param array $data
  609. * @return mixed
  610. */
  611. public function getRecruitingList(array $data)
  612. {
  613. return $this->__request(__FUNCTION__, $data);
  614. }
  615. /**
  616. * @param array $data
  617. * @return mixed
  618. */
  619. public function getRecruitingInfo(array $data)
  620. {
  621. return $this->__request(__FUNCTION__, $data);
  622. }
  623. //20250422 书刊音像
  624. public function getBookList(array $data)
  625. {
  626. return $this->__request(__FUNCTION__, $data);
  627. }
  628. public function updateBook(array $data)
  629. {
  630. return $this->__request(__FUNCTION__, $data);
  631. }
  632. public function addBook(array $data)
  633. {
  634. return $this->__request(__FUNCTION__, $data);
  635. }
  636. public function getBookInfo(array $data)
  637. {
  638. return $this->__request(__FUNCTION__, $data);
  639. }
  640. public function deleteBook(array $data)
  641. {
  642. return $this->__request(__FUNCTION__, $data);
  643. }
  644. public function updateBookStatus(array $data)
  645. {
  646. return $this->__request(__FUNCTION__, $data);
  647. }
  648. //20250422 书刊音像
  649. }