resume.js 7.0 KB

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