user.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import request from "@/utils/request"
  2. // 获取用户基本信息
  3. export const getUserInfo = (params) => {
  4. return request({
  5. url: '/app-api/menduner/system/person/get',
  6. method: 'GET',
  7. params,
  8. custom: {
  9. showLoading: false,
  10. auth: true
  11. }
  12. })
  13. }
  14. // 获取附件列表
  15. export const getPersonResumeCv = () => {
  16. return request({
  17. url: '/app-api/menduner/system/person/resume/get/person/cv',
  18. method: 'GET',
  19. custom: {
  20. showLoading: false,
  21. auth: true
  22. }
  23. })
  24. }
  25. // 获取收藏的招聘职位列表
  26. export const getJobFavoriteList = (params) => {
  27. return request({
  28. url: '/app-api/menduner/system/person/get/job/favorite/page',
  29. method: 'GET',
  30. params,
  31. custom: {
  32. showLoading: false,
  33. auth: true
  34. }
  35. })
  36. }
  37. // 获取关注的企业列表
  38. export const getSubscribeEnterprise = (params) => {
  39. return request({
  40. url: '/app-api/menduner/system/person/get/enterprise/subscribe/page',
  41. method: 'GET',
  42. params,
  43. custom: {
  44. showLoading: false,
  45. auth: true
  46. }
  47. })
  48. }
  49. // 谁看过我
  50. export const getInterestedMePage = (params) => {
  51. return request({
  52. url: '/app-api/menduner/system/job-cv-rel/look/page',
  53. method: 'GET',
  54. params,
  55. custom: {
  56. showLoading: false,
  57. auth: true
  58. }
  59. })
  60. }
  61. // 众聘比例信息
  62. export const getPublicRatio = () => {
  63. return request({
  64. url: '/admin-api/menduner/system/hire-commission-ratio/get',
  65. method: 'GET',
  66. custom: {
  67. showLoading: false,
  68. auth: false
  69. }
  70. })
  71. }
  72. // 上传附件简历
  73. export const saveResume = (data) => {
  74. return request({
  75. url: '/app-api/menduner/system/person/resume/person/cv/save',
  76. method: 'POST',
  77. data,
  78. custom: {
  79. auth: true,
  80. showLoading: false
  81. }
  82. })
  83. }
  84. // 删除附件简历
  85. export const deleteResume = (id) => {
  86. return request({
  87. url: '/app-api/menduner/system/person/resume/person/cv/remove',
  88. method: 'DELETE',
  89. params: {
  90. id
  91. },
  92. custom: {
  93. auth: true,
  94. showLoading: false
  95. }
  96. })
  97. }
  98. // 获取已投递的职位列表
  99. export const getJobDeliveryList = (params) => {
  100. return request({
  101. url: '/app-api/menduner/system/job-cv-rel/page',
  102. method: 'GET',
  103. params,
  104. custom: {
  105. showLoading: false,
  106. auth: true
  107. }
  108. })
  109. }
  110. // 获取面试日程分页
  111. export const getUserInterviewInvitePage = (params) => {
  112. return request({
  113. url: '/app-api/menduner/system/interview-invite/page',
  114. method: 'GET',
  115. params,
  116. custom: {
  117. showLoading: false,
  118. auth: true
  119. }
  120. })
  121. }
  122. // 同意邀约面试
  123. export const userInterviewInviteConsent = (data) => {
  124. return request({
  125. url: '/app-api/menduner/system/interview-invite/consent',
  126. method: 'POST',
  127. data,
  128. custom: {
  129. auth: true,
  130. showLoading: false
  131. }
  132. })
  133. }
  134. // 拒绝邀约面试
  135. export const userInterviewInviteReject = (id) => {
  136. return request({
  137. url: '/app-api/menduner/system/interview-invite/reject',
  138. method: 'POST',
  139. params: {
  140. id
  141. },
  142. custom: {
  143. auth: true,
  144. showLoading: false
  145. }
  146. })
  147. }