university.ts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. import { ApiResponse, ApiResponseList } from "@/types";
  2. import flyio from "../flyio";
  3. import { University, UniversityDetail, UniversityFilter, UniversityTier } from "@/types/university";
  4. // import {sleep} from "@/uni_modules/uv-ui-tools/libs/function";
  5. // 院校库 01 院校列表
  6. export function universityList(params: Record<string, any>) {
  7. return flyio.get('/front/university/list', params) as Promise<ApiResponseList<University>>
  8. }
  9. // 院校库 - 院校梯队
  10. export function universityListByTier() {
  11. // return new Promise(async (resolve, reject) => {
  12. // await sleep(300)
  13. // const mock = [{
  14. // typeName: '第一梯队',
  15. // typeValue: '1',
  16. // desc: '文化分280分以上',
  17. // list: [
  18. // {
  19. // "id": 10827,
  20. // "code": "10827",
  21. // "name": "长沙民政职业技术学院",
  22. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/e6027a8c35f7426592f161c47f336fe7.jpg",
  23. // "location": "湖南",
  24. // "type": "理工类",
  25. // "comScore": "85.63",
  26. // "cityName": "长沙市",
  27. // "star": "5★",
  28. // "bxLevel": "双高,公办,国家级示范,现代学徒制试点学院,理工类",
  29. // "features": "国家级示范,现代学徒制试点学院",
  30. // "address": "湖南省长沙市雨花区香樟路22号",
  31. // "hits": 4161780,
  32. // "natureTypeCN": "公办",
  33. // "webSite": "http://zs.csmzxy.edu.cn/ddzs.htm",
  34. // "area": 1024,
  35. // "collect": 7915,
  36. // "enrollLocation": "湖南"
  37. // },
  38. // {
  39. // "id": 10830,
  40. // "code": "10830",
  41. // "name": "湖南工业职业技术学院",
  42. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/83386e105f03474b91d7c1824e81fa0c.jpg",
  43. // "location": "湖南",
  44. // "type": "理工类",
  45. // "comScore": "81.09",
  46. // "cityName": "长沙市",
  47. // "star": "5★-",
  48. // "bxLevel": "双高,公办,国家级示范,理工类",
  49. // "features": "国家级示范",
  50. // "address": "湖南省长沙市岳麓区含浦科教园含浦大道139号",
  51. // "hits": 2126,
  52. // "natureTypeCN": "公办",
  53. // "webSite": "http://www.hunangy.com/zsjyc/",
  54. // "area": 1031,
  55. // "collect": 3169,
  56. // "enrollLocation": "湖南"
  57. // },
  58. // {
  59. // "id": 10836,
  60. // "code": "10836",
  61. // "name": "株洲师范高等专科学校",
  62. // "logo": "https://www.hnzzsz.com/template/blue/static/images/logo1.png",
  63. // "location": "湖南",
  64. // "managerType": "湖南省教育厅",
  65. // "type": "师范类",
  66. // "cityName": "株洲市",
  67. // "bxLevel": "公办,师范类",
  68. // "address": "湖南省株洲市云龙示范区智慧路89号",
  69. // "hits": 9,
  70. // "natureTypeCN": "公办",
  71. // "area": 348,
  72. // "enrollLocation": "湖南"
  73. // },
  74. // {
  75. // "id": 10865,
  76. // "code": "10865",
  77. // "name": "湖南信息职业技术学院",
  78. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/ed33a51d6ffa43ff89d93337f4a4369e.jpg",
  79. // "location": "湖南",
  80. // "type": "理工类",
  81. // "comScore": "69.58",
  82. // "cityName": "长沙市",
  83. // "star": "3★",
  84. // "bxLevel": "公办,理工类",
  85. // "features": "",
  86. // "address": "望城校区:湖南省长沙市望城区旺旺中路8号,芙蓉校区:湖南省长沙市芙蓉区职院街169号",
  87. // "hits": 3268,
  88. // "natureTypeCN": "公办",
  89. // "webSite": "http://zs.hniu.cn/recruit/index/index",
  90. // "area": 345,
  91. // "collect": 1594,
  92. // "enrollLocation": "湖南"
  93. // },
  94. // {
  95. // "id": 12055,
  96. // "code": "12055",
  97. // "name": "长沙航空职业技术学院",
  98. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/f8ec6944910f42e8a2a430db9b37f622.jpg",
  99. // "location": "湖南",
  100. // "type": "理工类",
  101. // "comScore": "80.01",
  102. // "cityName": "长沙市",
  103. // "star": "5★-",
  104. // "bxLevel": "双高,公办,现代学徒制试点学院,理工类",
  105. // "features": "现代学徒制试点学院",
  106. // "address": "湖南省长沙市雨花区跳马镇(跳马校区),湖南省长沙市雨花区体院路348号(圭塘校区)",
  107. // "hits": 1133,
  108. // "natureTypeCN": "公办",
  109. // "webSite": "http://dzw.cavtc.cn/",
  110. // "area": 1000,
  111. // "collect": 484,
  112. // "enrollLocation": "湖南"
  113. // },
  114. //
  115. //
  116. // ]
  117. // }, {
  118. // typeName: '第二梯队',
  119. // typeValue: '2',
  120. // desc: '文化分270分以上',
  121. // list: [{
  122. // "id": 12300,
  123. // "code": "12300",
  124. // "name": "湖南大众传媒职业技术学院",
  125. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/2613786a1409452899cbbe1b2c413058.jpg",
  126. // "location": "湖南",
  127. // "type": "综合类",
  128. // "comScore": "71.73",
  129. // "cityName": "长沙市",
  130. // "star": "3★",
  131. // "bxLevel": "公办,国家级骨干,综合类",
  132. // "features": "国家级骨干",
  133. // "address": "湖南省长沙市星沙经济开发区特立路5号",
  134. // "hits": 6805,
  135. // "natureTypeCN": "公办",
  136. // "webSite": "http://www.hnmmc.cn:85/",
  137. // "area": 594,
  138. // "collect": 3048,
  139. // "enrollLocation": "湖南"
  140. // },
  141. // {
  142. // "id": 12301,
  143. // "code": "12301",
  144. // "name": "永州职业技术学院",
  145. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/81a43cae8bb54211aa9be0849f47a708.jpg",
  146. // "location": "湖南",
  147. // "type": "综合类",
  148. // "comScore": "73.17",
  149. // "cityName": "永州市",
  150. // "star": "4★",
  151. // "bxLevel": "公办,国家级示范,现代学徒制试点学院,综合类",
  152. // "features": "国家级示范,现代学徒制试点学院",
  153. // "address": "湖南省永州市零陵区永州大道289号",
  154. // "hits": 6508,
  155. // "natureTypeCN": "公办",
  156. // "webSite": "http://hnyzzy.com/zsc/",
  157. // "area": 3362,
  158. // "collect": 2766,
  159. // "enrollLocation": "湖南"
  160. // },
  161. // {
  162. // "id": 12302,
  163. // "code": "12302",
  164. // "name": "湖南铁道职业技术学院",
  165. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/23b6da550a584ea6b60886c6ae97b610.jpg",
  166. // "location": "湖南",
  167. // "type": "综合类",
  168. // "comScore": "82.96",
  169. // "cityName": "株洲市",
  170. // "star": "5★",
  171. // "bxLevel": "双高,公办,国家级示范,现代学徒制试点学院,综合类",
  172. // "features": "国家级示范,现代学徒制试点学院",
  173. // "address": "湖南省株洲市石峰区田心大道18号",
  174. // "hits": 3804,
  175. // "natureTypeCN": "公办",
  176. // "webSite": "http://zs.hnrpc.com/zsxt-web/zzzs/hntd/index.do",
  177. // "area": 377,
  178. // "collect": 1277,
  179. // "enrollLocation": "湖南"
  180. // },
  181. // {
  182. // "id": 12304,
  183. // "code": "12304",
  184. // "name": "湖南科技职业学院",
  185. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/55654765a95d470f9ce32d6a2799cbdf.jpg",
  186. // "location": "湖南",
  187. // "type": "综合类",
  188. // "comScore": "71.66",
  189. // "cityName": "长沙市",
  190. // "star": "3★",
  191. // "bxLevel": "公办,国家级骨干,综合类",
  192. // "features": "国家级骨干",
  193. // "address": "雨花校区:湖南省长沙市井湾路784号,暮云校区:湖南省长沙市中意三路花园",
  194. // "hits": 4326,
  195. // "natureTypeCN": "公办",
  196. // "webSite": "http://zsb.hnkjxy.net.cn/",
  197. // "area": 1000,
  198. // "collect": 1683,
  199. // "enrollLocation": "湖南"
  200. // },
  201. // {
  202. // "id": 12343,
  203. // "code": "12343",
  204. // "name": "湖南生物机电职业技术学院",
  205. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/7a6ac5559c424458a16fead8e6c522f9.jpg",
  206. // "location": "湖南",
  207. // "type": "农林类",
  208. // "comScore": "73.31",
  209. // "cityName": "长沙市",
  210. // "star": "4★",
  211. // "bxLevel": "双高,公办,现代学徒制试点学院,农林类",
  212. // "features": "现代学徒制试点学院",
  213. // "address": "湖南省长沙市芙蓉区隆平高科技园",
  214. // "hits": 4992,
  215. // "natureTypeCN": "公办",
  216. // "webSite": "https://zsjy.hnbemc.cn/",
  217. // "area": 2470,
  218. // "collect": 3353,
  219. // "enrollLocation": "湖南"
  220. // }]
  221. // }, {
  222. // typeName: '第三梯队',
  223. // typeValue: '3',
  224. // desc: '文化分260分以上',
  225. // list: [{
  226. // "id": 12397,
  227. // "code": "12397",
  228. // "name": "湖南交通职业技术学院",
  229. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/4446a9570f03422a92472c0bc9980825.jpg",
  230. // "location": "湖南",
  231. // "type": "理工类",
  232. // "comScore": "78.85",
  233. // "cityName": "长沙市",
  234. // "star": "5★-",
  235. // "bxLevel": "双高,公办,国家级示范,理工类",
  236. // "features": "国家级示范",
  237. // "address": "湖南省长沙市黄兴镇湖南交通职业技术学院",
  238. // "hits": 5584,
  239. // "natureTypeCN": "公办",
  240. // "webSite": "http://zsw.hnjtzy.com.cn/",
  241. // "area": 728,
  242. // "collect": 2047,
  243. // "enrollLocation": "湖南"
  244. // },
  245. // {
  246. // "id": 12401,
  247. // "code": "12401",
  248. // "name": "湖南商务职业技术学院",
  249. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/a0995669452c4f2e9ad4b9faa6903883.jpg",
  250. // "location": "湖南",
  251. // "type": "财经类",
  252. // "comScore": "66.37",
  253. // "cityName": "长沙市",
  254. // "star": "3★",
  255. // "bxLevel": "公办,财经类",
  256. // "features": "",
  257. // "address": "湖南省长沙市岳麓区雷锋大道335号",
  258. // "hits": 3381,
  259. // "natureTypeCN": "公办",
  260. // "webSite": "http://www.hnswxy.com/danzhao/",
  261. // "area": 428,
  262. // "collect": 1751,
  263. // "enrollLocation": "湖南"
  264. // },
  265. // {
  266. // "id": 12423,
  267. // "code": "12423",
  268. // "name": "湖南体育职业学院",
  269. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/ffa48630d0da4dd89f7f9855dadb8565.jpg",
  270. // "location": "湖南",
  271. // "type": "体育类",
  272. // "comScore": "64.69",
  273. // "cityName": "长沙市",
  274. // "star": "",
  275. // "bxLevel": "公办,体育类",
  276. // "features": "",
  277. // "address": "湖南省长沙市雨花区体院北路71号",
  278. // "hits": 1143,
  279. // "natureTypeCN": "公办",
  280. // "webSite": "http://www.hntyxy.net/zsw.jhtml",
  281. // "area": 689,
  282. // "collect": 199,
  283. // "enrollLocation": "湖南"
  284. // },
  285. // {
  286. // "id": 12425,
  287. // "code": "12425",
  288. // "name": "湖南工程职业技术学院",
  289. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/475316e2a3ef4674806730bac4499c55.jpg",
  290. // "location": "湖南",
  291. // "type": "理工类",
  292. // "comScore": "69.67",
  293. // "cityName": "长沙市",
  294. // "star": "3★",
  295. // "bxLevel": "公办,理工类",
  296. // "features": "",
  297. // "address": "湖南省长沙市万家丽北路水渡河100号",
  298. // "hits": 753,
  299. // "natureTypeCN": "公办",
  300. // "webSite": "http://hngczyzs.bibibi.net/recruit/index/index",
  301. // "area": 600,
  302. // "collect": 1790,
  303. // "enrollLocation": "湖南"
  304. // },
  305. // {
  306. // "id": 12596,
  307. // "code": "12596",
  308. // "name": "保险职业学院",
  309. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/9e259e8a208f4865ab37397d649ee051.jpg",
  310. // "location": "湖南",
  311. // "type": "财经类",
  312. // "comScore": "64.26",
  313. // "cityName": "长沙市",
  314. // "star": "",
  315. // "bxLevel": "公办,财经类",
  316. // "features": "",
  317. // "address": "湖南省长沙市天心区中豹塘路196号",
  318. // "hits": 3985,
  319. // "natureTypeCN": "公办",
  320. // "webSite": "https://www.bxxy.com/html/folder/20070139-1.htm",
  321. // "area": 157,
  322. // "collect": 307,
  323. // "enrollLocation": "湖南"
  324. // }]
  325. // }, {
  326. // typeName: '第四梯队',
  327. // typeValue: '4',
  328. // desc: '文化分250分以上',
  329. // list: [{
  330. // "id": 12597,
  331. // "code": "12597",
  332. // "name": "湖南外贸职业学院",
  333. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/4e039fa413b1435e8aaadff57306519c.jpg",
  334. // "location": "湖南",
  335. // "type": "财经类",
  336. // "comScore": "66.92",
  337. // "cityName": "长沙市",
  338. // "star": "3★",
  339. // "bxLevel": "公办,财经类",
  340. // "features": "",
  341. // "address": "湖南省长沙市芙蓉北路望城区丁字镇翻身垸",
  342. // "hits": 3086,
  343. // "natureTypeCN": "公办",
  344. // "webSite": "http://www.hnwmxy.com/hezuobangongshi/",
  345. // "area": 706,
  346. // "collect": 1945,
  347. // "enrollLocation": "湖南"
  348. // },
  349. // {
  350. // "id": 12598,
  351. // "code": "12598",
  352. // "name": "湖南网络工程职业学院",
  353. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/6ed81c4da4ff4f44a356a1701459d2a5.jpg",
  354. // "location": "湖南",
  355. // "type": "综合类",
  356. // "comScore": "67.38",
  357. // "cityName": "长沙市",
  358. // "star": "3★",
  359. // "bxLevel": "公办,综合类",
  360. // "features": "",
  361. // "address": "湖南省长沙市青园路168号",
  362. // "hits": 2689,
  363. // "natureTypeCN": "公办",
  364. // "webSite": "http://www2.hnevc.com/zs/",
  365. // "area": 264,
  366. // "collect": 739,
  367. // "enrollLocation": "湖南"
  368. // },
  369. // {
  370. // "id": 12600,
  371. // "code": "12600",
  372. // "name": "邵阳职业技术学院",
  373. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/d3ea79ff7cfe4951bc4e39d118fa5adf.jpg",
  374. // "location": "湖南",
  375. // "type": "综合类",
  376. // "comScore": "64.27",
  377. // "cityName": "邵阳市",
  378. // "star": "",
  379. // "bxLevel": "公办,其他,综合类",
  380. // "features": "其他",
  381. // "address": "湖南省邵阳市大祥区城南乡学院路",
  382. // "hits": 1801,
  383. // "natureTypeCN": "公办",
  384. // "webSite": "http://www.syzyedu.com/bm/default.aspx?depid=25",
  385. // "area": 640,
  386. // "collect": 497,
  387. // "enrollLocation": "湖南"
  388. // },
  389. // {
  390. // "id": 12601,
  391. // "code": "12601",
  392. // "name": "湖南司法警官职业学院",
  393. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/b99a0e8c360e494ba3ddbf60cec9d21b.jpg",
  394. // "location": "湖南",
  395. // "type": "政法类",
  396. // "comScore": "64.04",
  397. // "cityName": "长沙市",
  398. // "star": "",
  399. // "bxLevel": "公办,政法类",
  400. // "features": "",
  401. // "address": "湖南省长沙市芙蓉区远大二路1069号",
  402. // "hits": 3178,
  403. // "natureTypeCN": "公办",
  404. // "webSite": "http://zs.hnsfjy.cn",
  405. // "area": 0,
  406. // "collect": 807,
  407. // "enrollLocation": "湖南"
  408. // },
  409. // {
  410. // "id": 12603,
  411. // "code": "12603",
  412. // "name": "长沙商贸旅游职业技术学院",
  413. // "logo": "https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/universityLog/ef1bcd5af239468299787456d9307da1.jpg",
  414. // "location": "湖南",
  415. // "type": "财经类",
  416. // "comScore": "75.46",
  417. // "cityName": "长沙市",
  418. // "star": "4★",
  419. // "bxLevel": "双高,公办,现代学徒制试点学院,财经类",
  420. // "features": "现代学徒制试点学院",
  421. // "address": "湖南省长沙市雨花区圭白路16号",
  422. // "hits": 2215,
  423. // "natureTypeCN": "公办",
  424. // "webSite": "http://jyzs.hncpu.com:8080/",
  425. // "area": 712,
  426. // "collect": 5127,
  427. // "enrollLocation": "湖南"
  428. // }]
  429. // }]
  430. // resolve({code: 200, data: mock})
  431. // })
  432. // 返回全量,不需要分页
  433. return flyio.get('/front/university/listByTier') as Promise<ApiResponse<UniversityTier[]>>
  434. }
  435. export function universityDetail(params: any) {
  436. return flyio.get('/front/university/detail', params) as Promise<ApiResponse<UniversityDetail>>
  437. }
  438. /**
  439. * 获取院校列表
  440. * @param params
  441. * @returns
  442. */
  443. export function getUniversityList() {
  444. return flyio.get('/front/student/university') as Promise<ApiResponse<any>>;
  445. }
  446. /**
  447. * 获取院校专业列表
  448. * @param params
  449. * @returns
  450. */
  451. export function getUniversityMajorList(params: { universityId: string }) {
  452. return flyio.get('/front/student/university/major', params) as Promise<ApiResponse<any>>;
  453. }
  454. /*院校筛选条件*/
  455. export function getUniversityFilters() {
  456. return flyio.get('/front/university/filters') as Promise<ApiResponse<UniversityFilter>>
  457. }
  458. // GET
  459. // /prod-api/front/customer/university/add
  460. // 03 关注院校
  461. export function concernUniversity(params: any) {
  462. return flyio.get('/front/customer/university/add', params)
  463. }
  464. // GET
  465. // /prod-api/front/customer/university/remove
  466. // 02 移除关注院校
  467. export function removeConcernedUniversity(params: any) {
  468. return flyio.get('/front/customer/university/remove', params)
  469. }
  470. export function getUniversitiesEnrollBrochureDetail(params: any) {
  471. return flyio.get('/front/university/getUniversitiesEnrollBrochureDetail', params)
  472. }