user.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. }
  148. // 企业详情
  149. export const getEnterpriseDetails = (id) => {
  150. return request({
  151. url: '/app-api/menduner/system/enterprise/detail',
  152. method: 'GET',
  153. params: {
  154. id
  155. },
  156. custom: {
  157. auth: false,
  158. showLoading: false
  159. }
  160. })
  161. }
  162. // 效验求职者是否关注该企业
  163. export const getEnterpriseSubscribeCheck = (params) => {
  164. return request({
  165. url: '/app-api/menduner/system/person/enterprise/subscribe/check',
  166. method: 'GET',
  167. params,
  168. custom: {
  169. auth: false,
  170. showLoading: false
  171. }
  172. })
  173. }
  174. // 关注企业
  175. export const getEnterpriseSubscribe = (data) => {
  176. return request({
  177. url: '/app-api/menduner/system/person/enterprise/subscribe',
  178. method: 'POST',
  179. data,
  180. custom: {
  181. auth: false,
  182. showLoading: false
  183. }
  184. })
  185. }
  186. // 取消关注企业
  187. export const getEnterpriseUnsubscribe = (enterpriseId) => {
  188. return request({
  189. url: '/app-api/menduner/system/person/enterprise/unsubscribe',
  190. method: 'DELETE',
  191. params: {
  192. enterpriseId
  193. },
  194. custom: {
  195. auth: false,
  196. showLoading: false
  197. }
  198. })
  199. }
  200. // 点击企业详情埋点
  201. export const enterpriseClick = (data) => {
  202. return request({
  203. url: '/app-api/menduner/system/enterprise/click',
  204. method: 'POST',
  205. data,
  206. custom: {
  207. auth: false,
  208. showLoading: false
  209. }
  210. })
  211. }
  212. // 获取企业实名认证信息
  213. export const getEnterpriseAuthDetails = (enterpriseId) => {
  214. return request({
  215. url: '/app-api/menduner/system/enterprise/get/auth',
  216. method: 'GET',
  217. params: {
  218. enterpriseId
  219. },
  220. custom: {
  221. auth: false,
  222. showLoading: false
  223. }
  224. })
  225. }