NewsService.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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. return $this->__request(__FUNCTION__, $data);
  140. }
  141. public function getGoodInfo(array $data){
  142. return $this->__request(__FUNCTION__, $data);
  143. }
  144. public function addGood(array $data){
  145. return $this->__request(__FUNCTION__, $data);
  146. }
  147. public function delGood(array $data){
  148. return $this->__request(__FUNCTION__, $data);
  149. }
  150. public function updateGood(array $data){
  151. return $this->__request(__FUNCTION__, $data);
  152. }
  153. //20250226 产品列表
  154. /**
  155. * @param array $data
  156. * @return array|mixed
  157. */
  158. public function checkCategoryName(array $data)
  159. {
  160. return $this->__request(__FUNCTION__, $data);
  161. }
  162. /**
  163. * @param array $data
  164. * @return array
  165. */
  166. public function getWebsiteArticleList(array $data)
  167. {
  168. return $this->__request(__FUNCTION__, $data);
  169. }
  170. /**
  171. * @param array $data
  172. * @return array
  173. */
  174. public function selectWebsiteArticleInfo(array $data)
  175. {
  176. return $this->__request(__FUNCTION__, $data);
  177. }
  178. /**
  179. * @param array $data
  180. * @return mixed
  181. */
  182. public function getWebsiteSurvey(array $data)
  183. {
  184. return $this->__request(__FUNCTION__, $data);
  185. }
  186. /**
  187. * @param array $data
  188. * @return mixed
  189. */
  190. public function addWebsiteSurveyOption(array $data)
  191. {
  192. return $this->__request(__FUNCTION__, $data);
  193. }
  194. /**
  195. * @param array $data
  196. * @return mixed
  197. */
  198. public function addWebsiteSurveyVote(array $data)
  199. {
  200. return $this->__request(__FUNCTION__, $data);
  201. }
  202. /**
  203. * @param array $data
  204. * @return mixed
  205. */
  206. public function getJobRecruitingList(array $data)
  207. {
  208. return $this->__request(__FUNCTION__, $data);
  209. }
  210. /**
  211. * @param array $data
  212. * @return mixed
  213. */
  214. public function getJobRecruitingInfo(array $data)
  215. {
  216. return $this->__request(__FUNCTION__, $data);
  217. }
  218. /**
  219. * @param array $data
  220. * @return mixed
  221. */
  222. public function addJobRecruiting(array $data)
  223. {
  224. return $this->__request(__FUNCTION__, $data);
  225. }
  226. /**
  227. * @param array $data
  228. * @return mixed
  229. */
  230. public function getJobRecruitingArea(array $data)
  231. {
  232. return $this->__request(__FUNCTION__, $data);
  233. }
  234. /**
  235. * @param array $data
  236. * @return mixed
  237. */
  238. public function getIndustry(array $data)
  239. {
  240. return $this->__request(__FUNCTION__, $data);
  241. }
  242. /**
  243. * @param array $data
  244. * @return mixed
  245. */
  246. public function getPositionList(array $data)
  247. {
  248. return $this->__request(__FUNCTION__, $data);
  249. }
  250. /**
  251. * @param array $data
  252. * @return mixed
  253. */
  254. public function getJobNature(array $data)
  255. {
  256. return $this->__request(__FUNCTION__, $data);
  257. }
  258. /**
  259. * @param array $data
  260. * @return mixed
  261. */
  262. public function getExperience(array $data)
  263. {
  264. return $this->__request(__FUNCTION__, $data);
  265. }
  266. /**
  267. * @param array $data
  268. * @return mixed
  269. */
  270. public function getEducation(array $data)
  271. {
  272. return $this->__request(__FUNCTION__, $data);
  273. }
  274. /**
  275. * @param array $data
  276. * @return mixed
  277. */
  278. public function getSalary(array $data)
  279. {
  280. return $this->__request(__FUNCTION__, $data);
  281. }
  282. /**
  283. * @param array $data
  284. * @return mixed
  285. */
  286. public function getLanguage(array $data)
  287. {
  288. return $this->__request(__FUNCTION__, $data);
  289. }
  290. /**
  291. * @param array $data
  292. * @return mixed
  293. */
  294. public function getLevel(array $data)
  295. {
  296. return $this->__request(__FUNCTION__, $data);
  297. }
  298. /**
  299. * @param array $data
  300. * @return mixed
  301. */
  302. public function getCompanySize(array $data)
  303. {
  304. return $this->__request(__FUNCTION__, $data);
  305. }
  306. /**
  307. * @param array $data
  308. * @return mixed
  309. */
  310. public function getCompanyNature(array $data)
  311. {
  312. return $this->__request(__FUNCTION__, $data);
  313. }
  314. /**
  315. * @param array $data
  316. * @return mixed
  317. */
  318. public function upJobRecruiting(array $data)
  319. {
  320. return $this->__request(__FUNCTION__, $data);
  321. }
  322. /**
  323. * @param array $data
  324. * @return mixed
  325. */
  326. public function delJobRecruiting(array $data)
  327. {
  328. return $this->__request(__FUNCTION__, $data);
  329. }
  330. /**
  331. * @param array $data
  332. * @return mixed
  333. */
  334. public function getJobCompany(array $data)
  335. {
  336. return $this->__request(__FUNCTION__, $data);
  337. }
  338. /**
  339. * @param array $data
  340. * @return mixed
  341. */
  342. public function upJobCompany(array $data)
  343. {
  344. return $this->__request(__FUNCTION__, $data);
  345. }
  346. /**
  347. * @param array $data
  348. * @return mixed
  349. */
  350. public function checkJobRecruiting(array $data)
  351. {
  352. return $this->__request(__FUNCTION__, $data);
  353. }
  354. /**
  355. * @param array $data
  356. * @return mixed
  357. */
  358. public function getRecruitingList(array $data)
  359. {
  360. return $this->__request(__FUNCTION__, $data);
  361. }
  362. /**
  363. * @param array $data
  364. * @return mixed
  365. */
  366. public function getRecruitingInfo(array $data)
  367. {
  368. return $this->__request(__FUNCTION__, $data);
  369. }
  370. /**
  371. * @param array $data
  372. * @return mixed
  373. */
  374. public function getJobResumeList(array $data)
  375. {
  376. return $this->__request(__FUNCTION__, $data);
  377. }
  378. //20250422 书刊音像
  379. public function getBookList(array $data)
  380. {
  381. return $this->__request(__FUNCTION__, $data);
  382. }
  383. public function updateBook(array $data)
  384. {
  385. return $this->__request(__FUNCTION__, $data);
  386. }
  387. public function addBook(array $data)
  388. {
  389. return $this->__request(__FUNCTION__, $data);
  390. }
  391. public function getBookInfo(array $data)
  392. {
  393. return $this->__request(__FUNCTION__, $data);
  394. }
  395. public function deleteBook(array $data)
  396. {
  397. return $this->__request(__FUNCTION__, $data);
  398. }
  399. public function updateBookStatus(array $data)
  400. {
  401. return $this->__request(__FUNCTION__, $data);
  402. }
  403. //20250422 书刊音像
  404. public function myApplyList(array $data): array
  405. {
  406. return $this->__request(__FUNCTION__, $data);
  407. }
  408. /**
  409. * @param array $data
  410. * @return array
  411. */
  412. public function getWebsiteTsbb(array $data): array
  413. {
  414. return $this->__request(__FUNCTION__, $data);
  415. }
  416. public function getWebsiteTsbbList(array $data): array
  417. {
  418. return $this->__request(__FUNCTION__, $data);
  419. }
  420. public function getWebsiteTsbbDetail(array $data): array
  421. {
  422. return $this->__request(__FUNCTION__, $data);
  423. }
  424. public function getWebsiteNwHomeList(array $data): array
  425. {
  426. return $this->__request(__FUNCTION__, $data);
  427. }
  428. public function getCompanyList(array $data): array
  429. {
  430. return $this->__request(__FUNCTION__, $data);
  431. }
  432. public function addCompany(array $data): array
  433. {
  434. return $this->__request(__FUNCTION__, $data);
  435. }
  436. public function upCompany(array $data): array
  437. {
  438. return $this->__request(__FUNCTION__, $data);
  439. }
  440. public function delCompany(array $data): array
  441. {
  442. return $this->__request(__FUNCTION__, $data);
  443. }
  444. public function checkCompany(array $data): array
  445. {
  446. return $this->__request(__FUNCTION__, $data);
  447. }
  448. public function getCompanyInfo(array $data): array
  449. {
  450. return $this->__request(__FUNCTION__, $data);
  451. }
  452. public function getProjectList(array $data): array
  453. {
  454. return $this->__request(__FUNCTION__, $data);
  455. }
  456. public function addProject(array $data): array
  457. {
  458. return $this->__request(__FUNCTION__, $data);
  459. }
  460. public function checkProject(array $data): array
  461. {
  462. return $this->__request(__FUNCTION__, $data);
  463. }
  464. public function delProject(array $data): array
  465. {
  466. return $this->__request(__FUNCTION__, $data);
  467. }
  468. public function upProject(array $data): array
  469. {
  470. return $this->__request(__FUNCTION__, $data);
  471. }
  472. public function getProjectInfo(array $data): array
  473. {
  474. return $this->__request(__FUNCTION__, $data);
  475. }
  476. /**
  477. * @param array $data
  478. * @return mixed
  479. */
  480. public function getWebsiteCategoryJob(array $data)
  481. {
  482. return $this->__request(__FUNCTION__, $data);
  483. }
  484. public function readNotice(array $data)
  485. {
  486. return $this->__request(__FUNCTION__, $data);
  487. }
  488. public function readComplaint(array $data)
  489. {
  490. return $this->__request(__FUNCTION__, $data);
  491. }
  492. public function readJobResume(array $data)
  493. {
  494. return $this->__request(__FUNCTION__, $data);
  495. }
  496. public function readJobApply(array $data)
  497. {
  498. return $this->__request(__FUNCTION__, $data);
  499. }
  500. public function noticeList(array $data)
  501. {
  502. return $this->__request(__FUNCTION__, $data);
  503. }
  504. public function complaintList(array $data)
  505. {
  506. return $this->__request(__FUNCTION__, $data);
  507. }
  508. public function getJobIndustryList(array $data)
  509. {
  510. return $this->__request(__FUNCTION__, $data);
  511. }
  512. public function addJobIndustry(array $data)
  513. {
  514. return $this->__request(__FUNCTION__, $data);
  515. }
  516. public function upJobIndustry(array $data)
  517. {
  518. return $this->__request(__FUNCTION__, $data);
  519. }
  520. public function delJobIndustry(array $data)
  521. {
  522. return $this->__request(__FUNCTION__, $data);
  523. }
  524. /**
  525. * @param array $data
  526. * @return array
  527. */
  528. public function getJobPositionList(array $data): array
  529. {
  530. return $this->__request(__FUNCTION__, $data);
  531. }
  532. /**
  533. * @param array $data
  534. * @return array
  535. */
  536. public function addJobPosition(array $data): array
  537. {
  538. return $this->__request(__FUNCTION__, $data);
  539. }
  540. /**
  541. * @param array $data
  542. * @return array
  543. */
  544. public function upJobPosition(array $data): array
  545. {
  546. return $this->__request(__FUNCTION__, $data);
  547. }
  548. /**
  549. * @param array $data
  550. * @return array
  551. */
  552. public function delJobPosition(array $data): array
  553. {
  554. return $this->__request(__FUNCTION__, $data);
  555. }
  556. }