resume.js 6.9 KB

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