user.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. import request from "@/utils/request"
  2. // 获取人才信息信息
  3. export const getBaseInfo = (params) => {
  4. return request({
  5. url: '/app-api/menduner/system/person/get',
  6. method: 'GET',
  7. params,
  8. custom: {
  9. openEncryption: true,
  10. showLoading: false,
  11. auth: true
  12. }
  13. })
  14. }
  15. // 获取用户信息
  16. export const getUserInfo = (params) => {
  17. return request({
  18. url: '/app-api/menduner/system/recruit/user/get',
  19. method: 'GET',
  20. params,
  21. custom: {
  22. openEncryption: true,
  23. showLoading: false,
  24. auth: true
  25. }
  26. })
  27. }
  28. // 获取账户信息
  29. export const getUserAccountInfo = () => {
  30. return request({
  31. url: '/app-api/pay/currency/get',
  32. method: 'GET',
  33. custom: {
  34. openEncryption: true,
  35. showLoading: false,
  36. auth: true
  37. }
  38. })
  39. }
  40. // 获取附件列表
  41. export const getPersonResumeCv = () => {
  42. return request({
  43. url: '/app-api/menduner/system/person/resume/get/person/cv',
  44. method: 'GET',
  45. custom: {
  46. showLoading: false,
  47. auth: true
  48. }
  49. })
  50. }
  51. // 附件简历解析2
  52. export const resumeParser2 = (params) => {
  53. return request({
  54. url: '/admin-api/menduner/system/online/resume/parser2',
  55. method: 'GET',
  56. params,
  57. custom: {
  58. showLoading: false,
  59. auth: true
  60. }
  61. })
  62. }
  63. // 简历解析-保存简历信息
  64. export const saveResumeInfo = (data) => {
  65. return request({
  66. url: '/app-api/menduner/system/person/resume/save',
  67. method: 'POST',
  68. data,
  69. custom: {
  70. openEncryption: true,
  71. auth: true,
  72. showLoading: false
  73. }
  74. })
  75. }
  76. // 获取收藏的招聘职位列表
  77. export const getJobFavoriteList = (params) => {
  78. return request({
  79. url: '/app-api/menduner/system/person/get/job/favorite/page',
  80. method: 'GET',
  81. params,
  82. custom: {
  83. showLoading: false,
  84. auth: true
  85. }
  86. })
  87. }
  88. // 获取关注的企业列表
  89. export const getSubscribeEnterprise = (params) => {
  90. return request({
  91. url: '/app-api/menduner/system/person/get/enterprise/subscribe/page',
  92. method: 'GET',
  93. params,
  94. custom: {
  95. showLoading: false,
  96. auth: true
  97. }
  98. })
  99. }
  100. // 谁看过我
  101. export const getInterestedMePage = (params) => {
  102. return request({
  103. url: '/app-api/menduner/system/job-cv-rel/look/page',
  104. method: 'GET',
  105. params,
  106. custom: {
  107. showLoading: false,
  108. auth: true
  109. }
  110. })
  111. }
  112. // 众聘比例信息
  113. export const getPublicRatio = () => {
  114. return request({
  115. url: '/admin-api/menduner/system/hire-commission-ratio/get',
  116. method: 'GET',
  117. custom: {
  118. showLoading: false,
  119. auth: false
  120. }
  121. })
  122. }
  123. // 上传附件简历
  124. export const saveResume = (data) => {
  125. return request({
  126. url: '/app-api/menduner/system/person/resume/person/cv/save',
  127. method: 'POST',
  128. data,
  129. custom: {
  130. auth: true,
  131. showLoading: false
  132. }
  133. })
  134. }
  135. // 删除附件简历
  136. export const deleteResume = (id) => {
  137. return request({
  138. url: '/app-api/menduner/system/person/resume/person/cv/remove',
  139. method: 'DELETE',
  140. params: {
  141. id
  142. },
  143. custom: {
  144. auth: true,
  145. showLoading: false
  146. }
  147. })
  148. }
  149. // 获取已投递的职位列表
  150. export const getJobDeliveryList = (params) => {
  151. return request({
  152. url: '/app-api/menduner/system/job-cv-rel/page',
  153. method: 'GET',
  154. params,
  155. custom: {
  156. showLoading: false,
  157. auth: true
  158. }
  159. })
  160. }
  161. // 获取面试日程分页
  162. export const getUserInterviewInvitePage = (params) => {
  163. return request({
  164. url: '/app-api/menduner/system/interview-invite/page',
  165. method: 'GET',
  166. params,
  167. custom: {
  168. showLoading: false,
  169. auth: true
  170. }
  171. })
  172. }
  173. // 同意邀约面试
  174. export const userInterviewInviteConsent = (data) => {
  175. return request({
  176. url: '/app-api/menduner/system/interview-invite/consent',
  177. method: 'POST',
  178. data,
  179. custom: {
  180. auth: true,
  181. showLoading: false
  182. }
  183. })
  184. }
  185. // 拒绝邀约面试
  186. export const userInterviewInviteReject = (id) => {
  187. return request({
  188. url: '/app-api/menduner/system/interview-invite/reject',
  189. method: 'POST',
  190. params: {
  191. id
  192. },
  193. custom: {
  194. auth: true,
  195. showLoading: false
  196. }
  197. })
  198. }
  199. // 企业详情
  200. export const getEnterpriseDetails = (id) => {
  201. return request({
  202. url: '/app-api/menduner/system/enterprise/detail',
  203. method: 'GET',
  204. params: {
  205. id
  206. },
  207. custom: {
  208. auth: false,
  209. showLoading: false
  210. }
  211. })
  212. }
  213. // 效验求职者是否关注该企业
  214. export const getEnterpriseSubscribeCheck = (params) => {
  215. return request({
  216. url: '/app-api/menduner/system/person/enterprise/subscribe/check',
  217. method: 'GET',
  218. params,
  219. custom: {
  220. auth: false,
  221. showLoading: false
  222. }
  223. })
  224. }
  225. // 关注企业
  226. export const getEnterpriseSubscribe = (data) => {
  227. return request({
  228. url: '/app-api/menduner/system/person/enterprise/subscribe',
  229. method: 'POST',
  230. data,
  231. custom: {
  232. auth: false,
  233. showLoading: false
  234. }
  235. })
  236. }
  237. // 取消关注企业
  238. export const getEnterpriseUnsubscribe = (enterpriseId) => {
  239. return request({
  240. url: '/app-api/menduner/system/person/enterprise/unsubscribe',
  241. method: 'DELETE',
  242. params: {
  243. enterpriseId
  244. },
  245. custom: {
  246. auth: false,
  247. showLoading: false
  248. }
  249. })
  250. }
  251. // 点击企业详情埋点
  252. export const enterpriseClick = (data) => {
  253. return request({
  254. url: '/app-api/menduner/system/enterprise/click',
  255. method: 'POST',
  256. data,
  257. custom: {
  258. auth: false,
  259. showLoading: false
  260. }
  261. })
  262. }
  263. // 获取企业实名认证信息
  264. export const getEnterpriseAuthDetails = (enterpriseId) => {
  265. return request({
  266. url: '/app-api/menduner/system/enterprise/get/auth',
  267. method: 'GET',
  268. params: {
  269. enterpriseId
  270. },
  271. custom: {
  272. auth: false,
  273. showLoading: false
  274. }
  275. })
  276. }
  277. // 保存基本信息
  278. export const saveBaseInfo = (data) => {
  279. return request({
  280. url: '/app-api/menduner/system/person/resume/info/save',
  281. method: 'POST',
  282. data,
  283. custom: {
  284. openEncryption: true,
  285. auth: true,
  286. showLoading: false
  287. }
  288. })
  289. }
  290. // 根据类型获取标签信息
  291. export const getTagTreeDataApi = async (params) => {
  292. return request({
  293. url: '/admin-api/menduner/system/tag/get/by/type',
  294. method: 'GET',
  295. params,
  296. custom: {
  297. showLoading: false,
  298. auth: false
  299. }
  300. })
  301. }
  302. // 修改个人画像
  303. export const savePersonPortrait = (data) => {
  304. return request({
  305. url: '/app-api/menduner/system/person/resume/tag/update',
  306. method: 'POST',
  307. data,
  308. custom: {
  309. auth: true,
  310. showLoading: false
  311. }
  312. })
  313. }
  314. // 保存个人优势
  315. export const saveResumeAdvantage = (data) => {
  316. return request({
  317. url: '/app-api/menduner/system/person/resume/advantage/save',
  318. method: 'POST',
  319. data,
  320. custom: {
  321. auth: true,
  322. showLoading: false
  323. }
  324. })
  325. }
  326. // 修改头像
  327. export const updatePersonAvatar = (avatar) => {
  328. return request({
  329. url: '/app-api/menduner/system/person/resume/avatar/update',
  330. method: 'POST',
  331. params: {
  332. avatar
  333. },
  334. custom: {
  335. auth: true,
  336. showLoading: false
  337. }
  338. })
  339. }
  340. // 获取职位分享小程序二维码
  341. export const getJobAdvertisedShareQrcode = (data, custom) => {
  342. return request({
  343. url: '/app-api/menduner/system/social-user/wxa-qrcode',
  344. method: 'POST',
  345. data,
  346. custom: {
  347. auth: custom?.noAuth ? false : true,
  348. showLoading: false
  349. }
  350. })
  351. }
  352. // 保存简易基本信息
  353. export const savePersonSimpleInfo = (data) => {
  354. return request({
  355. url: '/app-api/menduner/system/person/resume/info/simple/save',
  356. method: 'POST',
  357. data,
  358. custom: {
  359. auth: true,
  360. showLoading: false
  361. }
  362. })
  363. }
  364. // 保存学生基本信息
  365. export const saveStudentSimpleInfo = (data) => {
  366. return request({
  367. url: '/app-api/menduner/system/person/resume/student/save',
  368. method: 'POST',
  369. data,
  370. custom: {
  371. auth: true,
  372. showLoading: false
  373. }
  374. })
  375. }
  376. // 获取学生基本信息
  377. export const getStudentInfo = (data) => {
  378. return request({
  379. url: '/app-api/menduner/system/person/resume/student/get',
  380. method: 'POST',
  381. data,
  382. custom: {
  383. auth: true,
  384. showLoading: false
  385. }
  386. })
  387. }