user.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. showLoading: false,
  10. auth: true
  11. }
  12. })
  13. }
  14. // 获取用户信息
  15. export const getUserInfo = (params) => {
  16. return request({
  17. url: '/app-api/menduner/system/mde-user/get',
  18. method: 'GET',
  19. params,
  20. custom: {
  21. showLoading: false,
  22. auth: true
  23. }
  24. })
  25. }
  26. // 获取附件列表
  27. export const getPersonResumeCv = () => {
  28. return request({
  29. url: '/app-api/menduner/system/person/resume/get/person/cv',
  30. method: 'GET',
  31. custom: {
  32. showLoading: false,
  33. auth: true
  34. }
  35. })
  36. }
  37. // 获取收藏的招聘职位列表
  38. export const getJobFavoriteList = (params) => {
  39. return request({
  40. url: '/app-api/menduner/system/person/get/job/favorite/page',
  41. method: 'GET',
  42. params,
  43. custom: {
  44. showLoading: false,
  45. auth: true
  46. }
  47. })
  48. }
  49. // 获取关注的企业列表
  50. export const getSubscribeEnterprise = (params) => {
  51. return request({
  52. url: '/app-api/menduner/system/person/get/enterprise/subscribe/page',
  53. method: 'GET',
  54. params,
  55. custom: {
  56. showLoading: false,
  57. auth: true
  58. }
  59. })
  60. }
  61. // 谁看过我
  62. export const getInterestedMePage = (params) => {
  63. return request({
  64. url: '/app-api/menduner/system/job-cv-rel/look/page',
  65. method: 'GET',
  66. params,
  67. custom: {
  68. showLoading: false,
  69. auth: true
  70. }
  71. })
  72. }
  73. // 众聘比例信息
  74. export const getPublicRatio = () => {
  75. return request({
  76. url: '/admin-api/menduner/system/hire-commission-ratio/get',
  77. method: 'GET',
  78. custom: {
  79. showLoading: false,
  80. auth: false
  81. }
  82. })
  83. }
  84. // 上传附件简历
  85. export const saveResume = (data) => {
  86. return request({
  87. url: '/app-api/menduner/system/person/resume/person/cv/save',
  88. method: 'POST',
  89. data,
  90. custom: {
  91. auth: true,
  92. showLoading: false
  93. }
  94. })
  95. }
  96. // 删除附件简历
  97. export const deleteResume = (id) => {
  98. return request({
  99. url: '/app-api/menduner/system/person/resume/person/cv/remove',
  100. method: 'DELETE',
  101. params: {
  102. id
  103. },
  104. custom: {
  105. auth: true,
  106. showLoading: false
  107. }
  108. })
  109. }
  110. // 获取已投递的职位列表
  111. export const getJobDeliveryList = (params) => {
  112. return request({
  113. url: '/app-api/menduner/system/job-cv-rel/page',
  114. method: 'GET',
  115. params,
  116. custom: {
  117. showLoading: false,
  118. auth: true
  119. }
  120. })
  121. }
  122. // 获取面试日程分页
  123. export const getUserInterviewInvitePage = (params) => {
  124. return request({
  125. url: '/app-api/menduner/system/interview-invite/page',
  126. method: 'GET',
  127. params,
  128. custom: {
  129. showLoading: false,
  130. auth: true
  131. }
  132. })
  133. }
  134. // 同意邀约面试
  135. export const userInterviewInviteConsent = (data) => {
  136. return request({
  137. url: '/app-api/menduner/system/interview-invite/consent',
  138. method: 'POST',
  139. data,
  140. custom: {
  141. auth: true,
  142. showLoading: false
  143. }
  144. })
  145. }
  146. // 拒绝邀约面试
  147. export const userInterviewInviteReject = (id) => {
  148. return request({
  149. url: '/app-api/menduner/system/interview-invite/reject',
  150. method: 'POST',
  151. params: {
  152. id
  153. },
  154. custom: {
  155. auth: true,
  156. showLoading: false
  157. }
  158. })
  159. }
  160. // 企业详情
  161. export const getEnterpriseDetails = (id) => {
  162. return request({
  163. url: '/app-api/menduner/system/enterprise/detail',
  164. method: 'GET',
  165. params: {
  166. id
  167. },
  168. custom: {
  169. auth: false,
  170. showLoading: false
  171. }
  172. })
  173. }
  174. // 效验求职者是否关注该企业
  175. export const getEnterpriseSubscribeCheck = (params) => {
  176. return request({
  177. url: '/app-api/menduner/system/person/enterprise/subscribe/check',
  178. method: 'GET',
  179. params,
  180. custom: {
  181. auth: false,
  182. showLoading: false
  183. }
  184. })
  185. }
  186. // 关注企业
  187. export const getEnterpriseSubscribe = (data) => {
  188. return request({
  189. url: '/app-api/menduner/system/person/enterprise/subscribe',
  190. method: 'POST',
  191. data,
  192. custom: {
  193. auth: false,
  194. showLoading: false
  195. }
  196. })
  197. }
  198. // 取消关注企业
  199. export const getEnterpriseUnsubscribe = (enterpriseId) => {
  200. return request({
  201. url: '/app-api/menduner/system/person/enterprise/unsubscribe',
  202. method: 'DELETE',
  203. params: {
  204. enterpriseId
  205. },
  206. custom: {
  207. auth: false,
  208. showLoading: false
  209. }
  210. })
  211. }
  212. // 点击企业详情埋点
  213. export const enterpriseClick = (data) => {
  214. return request({
  215. url: '/app-api/menduner/system/enterprise/click',
  216. method: 'POST',
  217. data,
  218. custom: {
  219. auth: false,
  220. showLoading: false
  221. }
  222. })
  223. }
  224. // 获取企业实名认证信息
  225. export const getEnterpriseAuthDetails = (enterpriseId) => {
  226. return request({
  227. url: '/app-api/menduner/system/enterprise/get/auth',
  228. method: 'GET',
  229. params: {
  230. enterpriseId
  231. },
  232. custom: {
  233. auth: false,
  234. showLoading: false
  235. }
  236. })
  237. }
  238. // 保存基本信息
  239. export const saveBaseInfo = (data) => {
  240. return request({
  241. url: '/app-api/menduner/system/person/resume/info/save',
  242. method: 'POST',
  243. data,
  244. custom: {
  245. auth: true,
  246. showLoading: false
  247. }
  248. })
  249. }
  250. // 修改头像
  251. export const updatePersonAvatar = (avatar) => {
  252. return request({
  253. url: '/app-api/menduner/system/person/resume/avatar/update',
  254. method: 'POST',
  255. params: {
  256. avatar
  257. },
  258. custom: {
  259. auth: true,
  260. showLoading: false
  261. }
  262. })
  263. }