NewsService.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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. //20250306 求职信息
  155. public function getJobHuntingList(array $data){
  156. return $this->__request(__FUNCTION__, $data);
  157. }
  158. public function getJobHuntingInfo(array $data){
  159. return $this->__request(__FUNCTION__, $data);
  160. }
  161. public function addJobHunting(array $data){
  162. return $this->__request(__FUNCTION__, $data);
  163. }
  164. public function delJobHunting(array $data){
  165. return $this->__request(__FUNCTION__, $data);
  166. }
  167. public function updateJobHunting(array $data){
  168. return $this->__request(__FUNCTION__, $data);
  169. }
  170. public function getJobHuntingData(array $data){
  171. return $this->__request(__FUNCTION__, $data);
  172. }
  173. //20250306 求职信息
  174. //20250226 产品列表
  175. /**
  176. * @param array $data
  177. * @return array|mixed
  178. */
  179. public function checkCategoryName(array $data)
  180. {
  181. return $this->__request(__FUNCTION__, $data);
  182. }
  183. /**
  184. * @param array $data
  185. * @return array
  186. */
  187. public function getWebsiteArticleList(array $data)
  188. {
  189. return $this->__request(__FUNCTION__, $data);
  190. }
  191. /**
  192. * @param array $data
  193. * @return array
  194. */
  195. public function selectWebsiteArticleInfo(array $data)
  196. {
  197. return $this->__request(__FUNCTION__, $data);
  198. }
  199. /**
  200. * @param array $data
  201. * @return mixed
  202. */
  203. public function getWebsiteSurvey(array $data)
  204. {
  205. return $this->__request(__FUNCTION__, $data);
  206. }
  207. /**
  208. * @param array $data
  209. * @return mixed
  210. */
  211. public function addWebsiteSurveyOption(array $data)
  212. {
  213. return $this->__request(__FUNCTION__, $data);
  214. }
  215. /**
  216. * @param array $data
  217. * @return mixed
  218. */
  219. public function addWebsiteSurveyVote(array $data)
  220. {
  221. return $this->__request(__FUNCTION__, $data);
  222. }
  223. /**
  224. * @param array $data
  225. * @return mixed
  226. */
  227. public function getSurveyList(array $data)
  228. {
  229. return $this->__request(__FUNCTION__, $data);
  230. }
  231. /**
  232. * @param array $data
  233. * @return mixed
  234. */
  235. public function getSurveyInfo(array $data)
  236. {
  237. return $this->__request(__FUNCTION__, $data);
  238. }
  239. /**
  240. * @param array $data
  241. * @return mixed
  242. */
  243. public function selectWebsiteArticle(array $data)
  244. {
  245. return $this->__request(__FUNCTION__, $data);
  246. }
  247. /**
  248. * @param array $data
  249. * @return mixed
  250. */
  251. public function getJobRecruitingList(array $data)
  252. {
  253. return $this->__request(__FUNCTION__, $data);
  254. }
  255. /**
  256. * @param array $data
  257. * @return mixed
  258. */
  259. public function getJobRecruitingInfo(array $data)
  260. {
  261. return $this->__request(__FUNCTION__, $data);
  262. }
  263. /**
  264. * @param array $data
  265. * @return mixed
  266. */
  267. public function addJobRecruiting(array $data)
  268. {
  269. return $this->__request(__FUNCTION__, $data);
  270. }
  271. /**
  272. * @param array $data
  273. * @return mixed
  274. */
  275. public function getJobRecruitingArea(array $data)
  276. {
  277. return $this->__request(__FUNCTION__, $data);
  278. }
  279. /**
  280. * @param array $data
  281. * @return mixed
  282. */
  283. public function getIndustry(array $data)
  284. {
  285. return $this->__request(__FUNCTION__, $data);
  286. }
  287. /**
  288. * @param array $data
  289. * @return mixed
  290. */
  291. public function getPositionList(array $data)
  292. {
  293. return $this->__request(__FUNCTION__, $data);
  294. }
  295. /**
  296. * @param array $data
  297. * @return mixed
  298. */
  299. public function getJobNature(array $data)
  300. {
  301. return $this->__request(__FUNCTION__, $data);
  302. }
  303. /**
  304. * @param array $data
  305. * @return mixed
  306. */
  307. public function getExperience(array $data)
  308. {
  309. return $this->__request(__FUNCTION__, $data);
  310. }
  311. /**
  312. * @param array $data
  313. * @return mixed
  314. */
  315. public function getEducation(array $data)
  316. {
  317. return $this->__request(__FUNCTION__, $data);
  318. }
  319. /**
  320. * @param array $data
  321. * @return mixed
  322. */
  323. public function getSalary(array $data)
  324. {
  325. return $this->__request(__FUNCTION__, $data);
  326. }
  327. /**
  328. * @param array $data
  329. * @return mixed
  330. */
  331. public function getLanguage(array $data)
  332. {
  333. return $this->__request(__FUNCTION__, $data);
  334. }
  335. /**
  336. * @param array $data
  337. * @return mixed
  338. */
  339. public function getLevel(array $data)
  340. {
  341. return $this->__request(__FUNCTION__, $data);
  342. }
  343. /**
  344. * @param array $data
  345. * @return mixed
  346. */
  347. public function getCompanySize(array $data)
  348. {
  349. return $this->__request(__FUNCTION__, $data);
  350. }
  351. /**
  352. * @param array $data
  353. * @return mixed
  354. */
  355. public function getCompanyNature(array $data)
  356. {
  357. return $this->__request(__FUNCTION__, $data);
  358. }
  359. /**
  360. * @param array $data
  361. * @return mixed
  362. */
  363. public function upJobRecruiting(array $data)
  364. {
  365. return $this->__request(__FUNCTION__, $data);
  366. }
  367. /**
  368. * @param array $data
  369. * @return mixed
  370. */
  371. public function delJobRecruiting(array $data)
  372. {
  373. return $this->__request(__FUNCTION__, $data);
  374. }
  375. }