user.js 6.7 KB

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