NewsService.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  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. public function getArticleCommend(array $data)
  81. {
  82. return $this->__request(__FUNCTION__, $data);
  83. }
  84. /**
  85. * @param array $data
  86. * @return array
  87. */
  88. public function delArticle(array $data)
  89. {
  90. return $this->__request(__FUNCTION__, $data);
  91. }
  92. /**
  93. * @param array $data
  94. * @return array
  95. */
  96. public function updateArticle(array $data)
  97. {
  98. return $this->__request(__FUNCTION__, $data);
  99. }
  100. /**
  101. * @param array $data
  102. * @return array
  103. */
  104. public function getArticleInfo(array $data)
  105. {
  106. return $this->__request(__FUNCTION__, $data);
  107. }
  108. /**
  109. * @param array $data
  110. * @return array|mixed
  111. */
  112. public function getCategoryInfo(array $data)
  113. {
  114. return $this->__request(__FUNCTION__, $data);
  115. }
  116. /**
  117. * 更新资讯状态
  118. * @param array $data
  119. * @return mixed
  120. */
  121. public function upArticleStatus(array $data)
  122. {
  123. return $this->__request(__FUNCTION__, $data);
  124. }
  125. /**
  126. * @param array $data
  127. * @return array
  128. */
  129. public function getWebsiteModelArticles(array $data)
  130. {
  131. return $this->__request(__FUNCTION__, $data);
  132. }
  133. //20250226 产品列表
  134. public function getGoodList(array $data)
  135. {
  136. return $this->__request(__FUNCTION__, $data);
  137. }
  138. public function getGoodInfo(array $data)
  139. {
  140. return $this->__request(__FUNCTION__, $data);
  141. }
  142. public function addGood(array $data)
  143. {
  144. return $this->__request(__FUNCTION__, $data);
  145. }
  146. public function delGood(array $data)
  147. {
  148. return $this->__request(__FUNCTION__, $data);
  149. }
  150. public function updateGood(array $data)
  151. {
  152. return $this->__request(__FUNCTION__, $data);
  153. }
  154. //20250226 产品列表
  155. //20250306 求职信息
  156. public function getJobHuntingList(array $data)
  157. {
  158. return $this->__request(__FUNCTION__, $data);
  159. }
  160. public function getJobHuntingApply(array $data)
  161. {
  162. return $this->__request(__FUNCTION__, $data);
  163. }
  164. public function getJobHuntingInfo(array $data)
  165. {
  166. return $this->__request(__FUNCTION__, $data);
  167. }
  168. public function addJobHunting(array $data)
  169. {
  170. return $this->__request(__FUNCTION__, $data);
  171. }
  172. public function delJobHunting(array $data)
  173. {
  174. return $this->__request(__FUNCTION__, $data);
  175. }
  176. public function updateJobHunting(array $data)
  177. {
  178. return $this->__request(__FUNCTION__, $data);
  179. }
  180. public function getJobHuntingData(array $data)
  181. {
  182. return $this->__request(__FUNCTION__, $data);
  183. }
  184. //20250306 求职信息
  185. /**
  186. * @param array $data
  187. * @return array|mixed
  188. */
  189. public function checkCategoryName(array $data)
  190. {
  191. return $this->__request(__FUNCTION__, $data);
  192. }
  193. /**
  194. * @param array $data
  195. * @return mixed
  196. */
  197. public function getSurveyList(array $data)
  198. {
  199. return $this->__request(__FUNCTION__, $data);
  200. }
  201. /**
  202. * @param array $data
  203. * @return mixed
  204. */
  205. public function getSurveyInfo(array $data)
  206. {
  207. return $this->__request(__FUNCTION__, $data);
  208. }
  209. /**
  210. * @param array $data
  211. * @return mixed
  212. */
  213. public function getWebsiteCatidArticle(array $data)
  214. {
  215. return $this->__request(__FUNCTION__, $data);
  216. }
  217. /**
  218. * @param array $data
  219. * @return mixed
  220. */
  221. public function test(array $data)
  222. {
  223. return $this->__request(__FUNCTION__, $data);
  224. }
  225. //20250324 通知,公告,消息
  226. public function getNoticeList(array $data)
  227. {
  228. return $this->__request(__FUNCTION__, $data);
  229. }
  230. public function getNoticeInfo(array $data)
  231. {
  232. return $this->__request(__FUNCTION__, $data);
  233. }
  234. public function addNotice(array $data): array
  235. {
  236. return $this->__request(__FUNCTION__, $data);
  237. }
  238. public function updateNotice(array $data): array
  239. {
  240. return $this->__request(__FUNCTION__, $data);
  241. }
  242. public function deleteNotice(array $data): array
  243. {
  244. return $this->__request(__FUNCTION__, $data);
  245. }
  246. public function getMSG(array $data)
  247. {
  248. return $this->__request(__FUNCTION__, $data);
  249. }
  250. public function getComplaintList(array $data)
  251. {
  252. return $this->__request(__FUNCTION__, $data);
  253. }
  254. public function getComplaintInfo(array $data)
  255. {
  256. return $this->__request(__FUNCTION__, $data);
  257. }
  258. public function addComplaint(array $data): array
  259. {
  260. return $this->__request(__FUNCTION__, $data);
  261. }
  262. public function updateComplaint(array $data): array
  263. {
  264. return $this->__request(__FUNCTION__, $data);
  265. }
  266. public function deleteComplaint(array $data): array
  267. {
  268. return $this->__request(__FUNCTION__, $data);
  269. }
  270. public function updateJobHuntingStatus(array $data): array
  271. {
  272. return $this->__request(__FUNCTION__, $data);
  273. }
  274. public function updateNoticeStatus(array $data): array
  275. {
  276. return $this->__request(__FUNCTION__, $data);
  277. }
  278. public function updateComplaintStatus(array $data): array
  279. {
  280. return $this->__request(__FUNCTION__, $data);
  281. }
  282. public function updateGoodStatus(array $data): array
  283. {
  284. return $this->__request(__FUNCTION__, $data);
  285. }
  286. public function getDUser(array $data): array
  287. {
  288. return $this->__request(__FUNCTION__, $data);
  289. }
  290. //20250324 通知,公告,消息
  291. /**
  292. * @param array $data
  293. * @return mixed
  294. */
  295. public function getJobRecruitingList(array $data)
  296. {
  297. return $this->__request(__FUNCTION__, $data);
  298. }
  299. /**
  300. * @param array $data
  301. * @return mixed
  302. */
  303. public function getJobRecruitingInfo(array $data)
  304. {
  305. return $this->__request(__FUNCTION__, $data);
  306. }
  307. /**
  308. * @param array $data
  309. * @return mixed
  310. */
  311. public function addJobRecruiting(array $data)
  312. {
  313. return $this->__request(__FUNCTION__, $data);
  314. }
  315. /**
  316. * @param array $data
  317. * @return mixed
  318. */
  319. public function getJobRecruitingArea(array $data)
  320. {
  321. return $this->__request(__FUNCTION__, $data);
  322. }
  323. /**
  324. * @param array $data
  325. * @return mixed
  326. */
  327. public function getIndustry(array $data)
  328. {
  329. return $this->__request(__FUNCTION__, $data);
  330. }
  331. /**
  332. * @param array $data
  333. * @return mixed
  334. */
  335. public function getPositionList(array $data)
  336. {
  337. return $this->__request(__FUNCTION__, $data);
  338. }
  339. /**
  340. * @param array $data
  341. * @return mixed
  342. */
  343. public function getJobNature(array $data)
  344. {
  345. return $this->__request(__FUNCTION__, $data);
  346. }
  347. /**
  348. * @param array $data
  349. * @return mixed
  350. */
  351. public function getExperience(array $data)
  352. {
  353. return $this->__request(__FUNCTION__, $data);
  354. }
  355. /**
  356. * @param array $data
  357. * @return mixed
  358. */
  359. public function getEducation(array $data)
  360. {
  361. return $this->__request(__FUNCTION__, $data);
  362. }
  363. /**
  364. * @param array $data
  365. * @return mixed
  366. */
  367. public function getSalary(array $data)
  368. {
  369. return $this->__request(__FUNCTION__, $data);
  370. }
  371. /**
  372. * @param array $data
  373. * @return mixed
  374. */
  375. public function getLanguage(array $data)
  376. {
  377. return $this->__request(__FUNCTION__, $data);
  378. }
  379. /**
  380. * @param array $data
  381. * @return mixed
  382. */
  383. public function getLevel(array $data)
  384. {
  385. return $this->__request(__FUNCTION__, $data);
  386. }
  387. /**
  388. * @param array $data
  389. * @return mixed
  390. */
  391. public function getCompanySize(array $data)
  392. {
  393. return $this->__request(__FUNCTION__, $data);
  394. }
  395. /**
  396. * @param array $data
  397. * @return mixed
  398. */
  399. public function getCompanyNature(array $data)
  400. {
  401. return $this->__request(__FUNCTION__, $data);
  402. }
  403. /**
  404. * @param array $data
  405. * @return mixed
  406. */
  407. public function upJobRecruiting(array $data)
  408. {
  409. return $this->__request(__FUNCTION__, $data);
  410. }
  411. /**
  412. * @param array $data
  413. * @return mixed
  414. */
  415. public function delJobRecruiting(array $data)
  416. {
  417. return $this->__request(__FUNCTION__, $data);
  418. }
  419. /**
  420. * @param array $data
  421. * @return mixed
  422. */
  423. public function getJobCompany(array $data)
  424. {
  425. return $this->__request(__FUNCTION__, $data);
  426. }
  427. /**
  428. * @param array $data
  429. * @return mixed
  430. */
  431. public function upJobCompany(array $data)
  432. {
  433. return $this->__request(__FUNCTION__, $data);
  434. }
  435. /**
  436. * @param array $data
  437. * @return mixed
  438. */
  439. public function checkJobRecruiting(array $data)
  440. {
  441. return $this->__request(__FUNCTION__, $data);
  442. }
  443. /**
  444. * @param array $data
  445. * @return mixed
  446. */
  447. public function getRecruitingList(array $data)
  448. {
  449. return $this->__request(__FUNCTION__, $data);
  450. }
  451. /**
  452. * @param array $data
  453. * @return mixed
  454. */
  455. public function getRecruitingInfo(array $data)
  456. {
  457. return $this->__request(__FUNCTION__, $data);
  458. }
  459. /**
  460. * @param array $data
  461. * @return mixed
  462. */
  463. public function getJobResumeList(array $data)
  464. {
  465. return $this->__request(__FUNCTION__, $data);
  466. }
  467. //20250422 书刊音像
  468. public function getBookList(array $data)
  469. {
  470. return $this->__request(__FUNCTION__, $data);
  471. }
  472. public function updateBook(array $data)
  473. {
  474. return $this->__request(__FUNCTION__, $data);
  475. }
  476. public function addBook(array $data)
  477. {
  478. return $this->__request(__FUNCTION__, $data);
  479. }
  480. public function getBookInfo(array $data)
  481. {
  482. return $this->__request(__FUNCTION__, $data);
  483. }
  484. public function deleteBook(array $data)
  485. {
  486. return $this->__request(__FUNCTION__, $data);
  487. }
  488. public function updateBookStatus(array $data)
  489. {
  490. return $this->__request(__FUNCTION__, $data);
  491. }
  492. //20250422 书刊音像
  493. public function myApplyList(array $data): array
  494. {
  495. return $this->__request(__FUNCTION__, $data);
  496. }
  497. /**
  498. * @param array $data
  499. * @return array
  500. */
  501. public function getWebsiteTsbb(array $data): array
  502. {
  503. return $this->__request(__FUNCTION__, $data);
  504. }
  505. public function getWebsiteTsbbList(array $data): array
  506. {
  507. return $this->__request(__FUNCTION__, $data);
  508. }
  509. public function getWebsiteTsbbDetail(array $data): array
  510. {
  511. return $this->__request(__FUNCTION__, $data);
  512. }
  513. public function getWebsiteNwHomeList(array $data): array
  514. {
  515. return $this->__request(__FUNCTION__, $data);
  516. }
  517. public function getCompanyList(array $data): array
  518. {
  519. return $this->__request(__FUNCTION__, $data);
  520. }
  521. public function addCompany(array $data): array
  522. {
  523. return $this->__request(__FUNCTION__, $data);
  524. }
  525. public function upCompany(array $data): array
  526. {
  527. return $this->__request(__FUNCTION__, $data);
  528. }
  529. public function delCompany(array $data): array
  530. {
  531. return $this->__request(__FUNCTION__, $data);
  532. }
  533. public function checkCompany(array $data): array
  534. {
  535. return $this->__request(__FUNCTION__, $data);
  536. }
  537. public function getCompanyInfo(array $data): array
  538. {
  539. return $this->__request(__FUNCTION__, $data);
  540. }
  541. public function getProjectList(array $data): array
  542. {
  543. return $this->__request(__FUNCTION__, $data);
  544. }
  545. public function addProject(array $data): array
  546. {
  547. return $this->__request(__FUNCTION__, $data);
  548. }
  549. public function checkProject(array $data): array
  550. {
  551. return $this->__request(__FUNCTION__, $data);
  552. }
  553. public function delProject(array $data): array
  554. {
  555. return $this->__request(__FUNCTION__, $data);
  556. }
  557. public function upProject(array $data): array
  558. {
  559. return $this->__request(__FUNCTION__, $data);
  560. }
  561. public function getProjectInfo(array $data): array
  562. {
  563. return $this->__request(__FUNCTION__, $data);
  564. }
  565. public function readNotice(array $data)
  566. {
  567. return $this->__request(__FUNCTION__, $data);
  568. }
  569. public function readComplaint(array $data)
  570. {
  571. return $this->__request(__FUNCTION__, $data);
  572. }
  573. public function readJobResume(array $data)
  574. {
  575. return $this->__request(__FUNCTION__, $data);
  576. }
  577. public function readJobApply(array $data)
  578. {
  579. return $this->__request(__FUNCTION__, $data);
  580. }
  581. public function noticeList(array $data)
  582. {
  583. return $this->__request(__FUNCTION__, $data);
  584. }
  585. public function complaintList(array $data)
  586. {
  587. return $this->__request(__FUNCTION__, $data);
  588. }
  589. public function getJobIndustryList(array $data)
  590. {
  591. return $this->__request(__FUNCTION__, $data);
  592. }
  593. public function addJobIndustry(array $data)
  594. {
  595. return $this->__request(__FUNCTION__, $data);
  596. }
  597. public function upJobIndustry(array $data)
  598. {
  599. return $this->__request(__FUNCTION__, $data);
  600. }
  601. public function delJobIndustry(array $data)
  602. {
  603. return $this->__request(__FUNCTION__, $data);
  604. }
  605. /**
  606. * @param array $data
  607. * @return array
  608. */
  609. public function getJobPositionList(array $data): array
  610. {
  611. return $this->__request(__FUNCTION__, $data);
  612. }
  613. /**
  614. * @param array $data
  615. * @return array
  616. */
  617. public function addJobPosition(array $data): array
  618. {
  619. return $this->__request(__FUNCTION__, $data);
  620. }
  621. /**
  622. * @param array $data
  623. * @return array
  624. */
  625. public function upJobPosition(array $data): array
  626. {
  627. return $this->__request(__FUNCTION__, $data);
  628. }
  629. /**
  630. * @param array $data
  631. * @return array
  632. */
  633. public function delJobPosition(array $data): array
  634. {
  635. return $this->__request(__FUNCTION__, $data);
  636. }
  637. }