enterprise.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import request from "@/utils/request"
  2. // 获取精选企业列表
  3. export const getHotEnterprise = (params) => {
  4. return request({
  5. url: '/app-api/menduner/system/job/advertised/get/hot/enterprise',
  6. method: 'GET',
  7. params,
  8. custom: {
  9. showLoading: false,
  10. auth: false
  11. }
  12. })
  13. }
  14. // 更新员工信息
  15. export const updateStaffInfo = (data) => {
  16. return request({
  17. url: '/app-api/menduner/system/recruit/user/save',
  18. method: 'POST',
  19. data,
  20. custom: {
  21. showLoading: false,
  22. auth: true
  23. }
  24. })
  25. }
  26. // 获取企业基本信息
  27. export const getEnterpriseInfo = () => {
  28. return request({
  29. url: '/app-api/menduner/system/recruit/enterprise/get',
  30. method: 'GET',
  31. custom: {
  32. showLoading: false,
  33. auth: false
  34. }
  35. })
  36. }
  37. // 更新企业基本信息
  38. export const updateEnterpriseInfo = (data) => {
  39. return request({
  40. url: '/app-api/menduner/system/recruit/enterprise/update',
  41. method: 'POST',
  42. data,
  43. custom: {
  44. showLoading: false,
  45. auth: true
  46. }
  47. })
  48. }
  49. // 更新企业LOGO
  50. export const updateEnterpriseLogo = (url) => {
  51. return request({
  52. url: `/app-api/menduner/system/recruit/enterprise/logo/update?logoUrl=${url}`,
  53. method: 'POST',
  54. custom: {
  55. showLoading: false,
  56. auth: true
  57. }
  58. })
  59. }
  60. // 获取人才的在线简历详情
  61. export const getPersonCvDetail = (userId) => {
  62. return request({
  63. url: '/app-api/menduner/system/recruit/person-cv/detail?userId=' + userId,
  64. method: 'GET',
  65. custom: {
  66. openEncryption: true,
  67. showLoading: false,
  68. auth: false
  69. }
  70. })
  71. }