user.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 getInterestedMePage = (params) => {
  39. return request({
  40. url: '/app-api/menduner/system/job-cv-rel/look/page',
  41. method: 'GET',
  42. params,
  43. custom: {
  44. showLoading: false,
  45. auth: true
  46. }
  47. })
  48. }
  49. // 众聘比例信息
  50. export const getPublicRatio = () => {
  51. return request({
  52. url: '/admin-api/menduner/system/hire-commission-ratio/get',
  53. method: 'GET',
  54. custom: {
  55. showLoading: false,
  56. auth: false
  57. }
  58. })
  59. }
  60. // 上传附件简历
  61. export const saveResume = (data) => {
  62. return request({
  63. url: '/app-api/menduner/system/person/resume/person/cv/save',
  64. method: 'POST',
  65. data,
  66. custom: {
  67. auth: true,
  68. showLoading: false
  69. }
  70. })
  71. }
  72. // 删除附件简历
  73. export const deleteResume = (id) => {
  74. return request({
  75. url: '/app-api/menduner/system/person/resume/person/cv/remove',
  76. method: 'DELETE',
  77. params: {
  78. id
  79. },
  80. custom: {
  81. auth: true,
  82. showLoading: false
  83. }
  84. })
  85. }
  86. // 获取已投递的职位列表
  87. export const getJobDeliveryList = (params) => {
  88. return request({
  89. url: '/menduner/system/job-cv-rel/page',
  90. method: 'GET',
  91. params,
  92. custom: {
  93. showLoading: false,
  94. auth: true
  95. }
  96. })
  97. }
  98. // 获取面试日程分页
  99. export const getUserInterviewInvitePage = (params) => {
  100. return request({
  101. url: '/menduner/system/interview-invite/page',
  102. method: 'GET',
  103. params,
  104. custom: {
  105. showLoading: false,
  106. auth: true
  107. }
  108. })
  109. }