resume.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. import request from "@/utils/request"
  2. // 保存基本信息
  3. export const saveResumeBasicInfo = async (data) => {
  4. return request({
  5. url: '/app-api/menduner/system/person/resume/info/save',
  6. method: 'POST',
  7. data,
  8. custom: {
  9. openEncryption: true,
  10. showLoading: false,
  11. auth: true
  12. }
  13. })
  14. }
  15. // // 保存个人优势
  16. // export const saveResumeAdvantage = async (data) => {
  17. // return await request.post({
  18. // url: '/app-api/menduner/system/person/resume/advantage/save',
  19. // data
  20. // })
  21. // }
  22. // 保存培训经历
  23. export const saveResumeTrainExp = async (data) => {
  24. return request({
  25. url: '/app-api/menduner/system/person/resume/train/exp/save',
  26. method: 'POST',
  27. data,
  28. custom: {
  29. showLoading: false,
  30. auth: true
  31. }
  32. })
  33. }
  34. // 删除培训经历
  35. export const deleteResumeTrainExp = async (id) => {
  36. return request({
  37. url: '/app-api/menduner/system/person/resume/train/exp/remove?id=' + id,
  38. method: 'DELETE',
  39. custom: {
  40. auth: true,
  41. showLoading: false
  42. }
  43. })
  44. }
  45. // 获取培训经历
  46. export const getResumeTrainExp = async () => {
  47. return request({
  48. url: '/app-api/menduner/system/person/resume/get/train/exp',
  49. method: 'GET',
  50. custom: {
  51. showLoading: false,
  52. auth: true
  53. }
  54. })
  55. }
  56. // // 获取-教育经历
  57. export const getResumeEduExp = async () => {
  58. return request({
  59. url: '/app-api/menduner/system/person/resume/get/edu/exp',
  60. method: 'GET',
  61. custom: {
  62. showLoading: false,
  63. auth: true
  64. }
  65. })
  66. }
  67. // 删除-教育经历
  68. export const deleteResumeEduExp = async (id) => {
  69. return request({
  70. url: '/app-api/menduner/system/person/resume/edu/exp/remove?id=' + id,
  71. method: 'DELETE',
  72. custom: {
  73. auth: true,
  74. showLoading: false
  75. }
  76. })
  77. }
  78. // 保存-教育经历
  79. export const saveResumeEduExp = async (data) => {
  80. return request({
  81. url: '/app-api/menduner/system/person/resume/edu/exp/save',
  82. method: 'POST',
  83. data,
  84. custom: {
  85. showLoading: false,
  86. auth: true
  87. }
  88. })
  89. }
  90. // 获取-工作经历
  91. export const getResumeWorkExp = async () => {
  92. return request({
  93. url: '/app-api/menduner/system/person/resume/get/work/exp',
  94. method: 'GET',
  95. custom: {
  96. showLoading: false,
  97. auth: true
  98. }
  99. })
  100. }
  101. // 删除-工作经历
  102. export const deleteResumeWorkExp = async (id) => {
  103. return request({
  104. url: '/app-api/menduner/system/person/resume/work/exp/remove?id=' + id,
  105. method: 'DELETE',
  106. custom: {
  107. auth: true,
  108. showLoading: false
  109. }
  110. })
  111. }
  112. // 保存-工作经历
  113. export const saveResumeWorkExp = async (data) => {
  114. return request({
  115. url: '/app-api/menduner/system/person/resume/work/exp/save',
  116. method: 'POST',
  117. data,
  118. custom: {
  119. showLoading: false,
  120. auth: true
  121. }
  122. })
  123. }
  124. // // 保存项目经历
  125. // export const saveResumeProjectExp = async (data) => {
  126. // return await request.post({
  127. // url: '/app-api/menduner/system/person/resume/project/exp/save',
  128. // data
  129. // })
  130. // }
  131. // // 删除项目经历
  132. // export const deleteResumeProjectExp = async (id) => {
  133. // return await request.delete({
  134. // url: '/app-api/menduner/system/person/resume/project/exp/remove?id=' + id
  135. // })
  136. // }
  137. // 获取项目经历
  138. // export const getResumeProjectExp = async () => {
  139. // return request({
  140. // url: '/app-api/menduner/system/person/resume/get/project/exp',
  141. // method: 'GET',
  142. // custom: {
  143. // showLoading: false,
  144. // auth: true
  145. // }
  146. // })
  147. // }
  148. // 获取-技能树形
  149. export const getSkillTree = async () => {
  150. return request({
  151. url: '/app-api/menduner/system/skill/get/tree',
  152. method: 'GET',
  153. custom: {
  154. showLoading: false,
  155. auth: true
  156. }
  157. })
  158. }
  159. // 获取-职业技能
  160. export const getResumePersonSkill = async () => {
  161. return request({
  162. url: '/app-api/menduner/system/person/resume/get/person/skill',
  163. method: 'GET',
  164. custom: {
  165. showLoading: false,
  166. auth: true
  167. }
  168. })
  169. }
  170. // 删除-职业技能
  171. export const deleteResumePersonSkill = async (id) => {
  172. return request({
  173. url: '/app-api/menduner/system/person/resume/person/skill/remove?id=' + id,
  174. method: 'DELETE',
  175. custom: {
  176. auth: true,
  177. showLoading: false
  178. }
  179. })
  180. }
  181. // 保存-职业技能
  182. export const saveResumePersonSkill = async (data) => {
  183. return request({
  184. url: '/app-api/menduner/system/person/resume/person/skill/save',
  185. method: 'POST',
  186. data,
  187. custom: {
  188. showLoading: false,
  189. auth: true
  190. }
  191. })
  192. }
  193. // 保存求职意向
  194. export const saveResumeJobInterested = async (data) => {
  195. return request({
  196. url: '/app-api/menduner/system/person/resume/job/interested/save',
  197. method: 'POST',
  198. data,
  199. custom: {
  200. showLoading: false,
  201. auth: true
  202. }
  203. })
  204. }
  205. // 删除求职意向
  206. export const deleteResumeJobInterested = async (id) => {
  207. return request({
  208. url: '/app-api/menduner/system/person/resume/job/interested/remove?id=' + id,
  209. method: 'DELETE',
  210. custom: {
  211. auth: true,
  212. showLoading: false
  213. }
  214. })
  215. }
  216. // // 获取求职意向
  217. export const getResumeJobInterested = async () => {
  218. return request({
  219. url: '/app-api/menduner/system/person/resume/get/job/interested',
  220. method: 'GET',
  221. custom: {
  222. showLoading: false,
  223. auth: true
  224. }
  225. })
  226. }
  227. // // 根据专业名称模糊搜索
  228. export const schoolMajorByName = async (params) => {
  229. return request({
  230. url: '/app-api/menduner/system/major/search/by/name',
  231. params,
  232. method: 'GET',
  233. custom: {
  234. showLoading: false,
  235. auth: true
  236. }
  237. })
  238. }
  239. // 根据学校名称模糊搜索
  240. export const schoolSearchByName = async (params) => {
  241. return request({
  242. url: '/app-api/menduner/system/school/search/by/name',
  243. params,
  244. method: 'GET',
  245. custom: {
  246. showLoading: false,
  247. auth: true
  248. }
  249. })
  250. }
  251. // 根据企业名称模糊搜索
  252. export const enterpriseSearchByName = async (params) => {
  253. return request({
  254. url: '/app-api/menduner/system/enterprise/search/by/name',
  255. params,
  256. method: 'GET',
  257. custom: {
  258. showLoading: false,
  259. auth: true
  260. }
  261. })
  262. }
  263. // // 保存附件
  264. // export const savePersonResumeCv = async (data) => {
  265. // return await request.post({
  266. // url: '/app-api/menduner/system/person/resume/person/cv/save',
  267. // data
  268. // })
  269. // }
  270. // // 删除附件
  271. // export const deletePersonResumeCv = async (id) => {
  272. // return await request.delete({
  273. // url: '/app-api/menduner/system/person/resume/person/cv/remove?id=' + id
  274. // })
  275. // }
  276. // // 获取附件列表
  277. // export const getPersonResumeCv = async () => {
  278. // return await request.get({
  279. // url: '/app-api/menduner/system/person/resume/get/person/cv'
  280. // })
  281. // }
  282. // // 修改求职类型
  283. // export const updateJobStatus = async (data) => {
  284. // return await request.post({
  285. // url: '/app-api/menduner/system/person/resume/job/status/update?status=' + data,
  286. // })
  287. // }
  288. // // 修改人才头像
  289. // export const updatePersonAvatar = async (url) => {
  290. // return await request.post({
  291. // url: `/app-api/menduner/system/person/resume/avatar/update?avatar=${url}`
  292. // })
  293. // }
  294. // // 修改个人画像
  295. // export const savePersonPortrait = async (data) => {
  296. // return await request.post({
  297. // url: '/app-api/menduner/system/person/resume/tag/update',
  298. // data
  299. // })
  300. // }