enterprise.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. }
  72. // 企业注册
  73. export const enterpriseRegisterApply = (data) => {
  74. return request({
  75. url: `/app-api/menduner/system/enterprise-register/apply`,
  76. method: 'POST',
  77. data,
  78. custom: {
  79. showLoading: false,
  80. auth: true
  81. }
  82. })
  83. }
  84. // 获取当前用户提交的企业申请
  85. export const getUserRegisterEnterpriseApply = () => {
  86. return request({
  87. url: '/app-api/menduner/system/enterprise-register/by/user',
  88. method: 'GET',
  89. custom: {
  90. openEncryption: true,
  91. showLoading: false,
  92. auth: false
  93. }
  94. })
  95. }
  96. // 根据邮箱获取企业注册申请
  97. export const getEnterpriseRegisterApply = (email) => {
  98. return request({
  99. url: '/app-api/menduner/system/enterprise-register/by/email?email=' + email,
  100. method: 'GET',
  101. custom: {
  102. openEncryption: true,
  103. showLoading: false,
  104. auth: false
  105. }
  106. })
  107. }