position.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import request from "@/utils/request"
  2. // 根据条件搜索招聘职位
  3. export const getJobAdvertisedSearch = (params) => {
  4. return request({
  5. url: '/app-api/menduner/system/job/advertised/search',
  6. method: 'GET',
  7. params,
  8. custom: {
  9. showLoading: false,
  10. auth: false
  11. }
  12. })
  13. }
  14. // 职位详情
  15. export const getPositionDetails = (params) => {
  16. return request({
  17. url: '/app-api/menduner/system/job/advertised/get/detail',
  18. method: 'GET',
  19. params,
  20. custom: {
  21. showLoading: false,
  22. auth: false
  23. }
  24. })
  25. }
  26. // 效验招聘职位是否投递
  27. export const jobCvRelCheckSend = (params) => {
  28. return request({
  29. url: '/app-api/menduner/system/job-cv-rel/send/check',
  30. method: 'GET',
  31. params,
  32. custom: {
  33. showLoading: false,
  34. auth: true
  35. }
  36. })
  37. }
  38. // 效验求职者是否收藏该职位
  39. export const getJobFavoriteCheck = (params) => {
  40. return request({
  41. url: '/app-api/menduner/system/person/job/favorite/check',
  42. method: 'GET',
  43. params,
  44. custom: {
  45. showLoading: false,
  46. auth: true
  47. }
  48. })
  49. }
  50. // 求职者收藏职位
  51. export const getPersonJobFavorite = (data) => {
  52. return request({
  53. url: '/app-api/menduner/system/person/job/favorite',
  54. method: 'POST',
  55. data,
  56. custom: {
  57. auth: true,
  58. showLoading: false
  59. }
  60. })
  61. }
  62. // 求职者取消收藏职位
  63. export const getPersonJobUnfavorite = (jobId) => {
  64. return request({
  65. url: `/app-api/menduner/system/person/job/unfavorite?jobId=` + jobId,
  66. method: 'DELETE',
  67. // params: {
  68. // jobId
  69. // },
  70. custom: {
  71. auth: true,
  72. showLoading: false
  73. }
  74. })
  75. }
  76. // 投递简历
  77. export const jobCvRelSend = (data) => {
  78. return request({
  79. url: '/app-api/menduner/system/job-cv-rel/send',
  80. method: 'POST',
  81. data,
  82. custom: {
  83. auth: true,
  84. showLoading: false
  85. }
  86. })
  87. }