user.js 7.8 KB

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