resume.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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 request({
  150. url: '/app-api/menduner/system/skill/get/tree',
  151. method: 'GET',
  152. custom: {
  153. showLoading: false,
  154. auth: true
  155. }
  156. })
  157. }
  158. // 获取-职业技能
  159. export const getResumePersonSkill = async () => {
  160. return request({
  161. url: '/app-api/menduner/system/person/resume/get/person/skill',
  162. method: 'GET',
  163. custom: {
  164. showLoading: false,
  165. auth: true
  166. }
  167. })
  168. }
  169. // 删除-职业技能
  170. export const deleteResumePersonSkill = async (id) => {
  171. return request({
  172. url: '/app-api/menduner/system/person/resume/person/skill/remove?id=' + id,
  173. method: 'DELETE',
  174. custom: {
  175. auth: true,
  176. showLoading: false
  177. }
  178. })
  179. }
  180. // 保存-职业技能
  181. export const saveResumePersonSkill = async (data) => {
  182. return request({
  183. url: '/app-api/menduner/system/person/resume/person/skill/save',
  184. method: 'POST',
  185. data,
  186. custom: {
  187. showLoading: false,
  188. auth: true
  189. }
  190. })
  191. }
  192. // 保存求职意向
  193. export const saveResumeJobInterested = async (data) => {
  194. return request({
  195. url: '/app-api/menduner/system/person/resume/job/interested/save',
  196. method: 'POST',
  197. data,
  198. custom: {
  199. showLoading: false,
  200. auth: true
  201. }
  202. })
  203. }
  204. // 删除求职意向
  205. export const deleteResumeJobInterested = async (id) => {
  206. return request({
  207. url: '/app-api/menduner/system/person/resume/job/interested/remove?id=' + id,
  208. method: 'DELETE',
  209. custom: {
  210. auth: true,
  211. showLoading: false
  212. }
  213. })
  214. }
  215. // // 获取求职意向
  216. export const getResumeJobInterested = async () => {
  217. return request({
  218. url: '/app-api/menduner/system/person/resume/get/job/interested',
  219. method: 'GET',
  220. custom: {
  221. showLoading: false,
  222. auth: true
  223. }
  224. })
  225. }
  226. // // 根据专业名称模糊搜索
  227. export const schoolMajorByName = async (params) => {
  228. return request({
  229. url: '/app-api/menduner/system/major/search/by/name',
  230. params,
  231. method: 'GET',
  232. custom: {
  233. showLoading: false,
  234. auth: true
  235. }
  236. })
  237. }
  238. // 根据学校名称模糊搜索
  239. export const schoolSearchByName = async (params) => {
  240. return request({
  241. url: '/app-api/menduner/system/school/search/by/name',
  242. params,
  243. method: 'GET',
  244. custom: {
  245. showLoading: false,
  246. auth: true
  247. }
  248. })
  249. }
  250. // 根据企业名称模糊搜索
  251. export const enterpriseSearchByName = async (params) => {
  252. return request({
  253. url: '/app-api/menduner/system/enterprise/search/by/name',
  254. params,
  255. method: 'GET',
  256. custom: {
  257. showLoading: false,
  258. auth: true
  259. }
  260. })
  261. }
  262. // // 保存附件
  263. // export const savePersonResumeCv = async (data) => {
  264. // return await request.post({
  265. // url: '/app-api/menduner/system/person/resume/person/cv/save',
  266. // data
  267. // })
  268. // }
  269. // // 删除附件
  270. // export const deletePersonResumeCv = async (id) => {
  271. // return await request.delete({
  272. // url: '/app-api/menduner/system/person/resume/person/cv/remove?id=' + id
  273. // })
  274. // }
  275. // // 获取附件列表
  276. // export const getPersonResumeCv = async () => {
  277. // return await request.get({
  278. // url: '/app-api/menduner/system/person/resume/get/person/cv'
  279. // })
  280. // }
  281. // // 修改求职类型
  282. // export const updateJobStatus = async (data) => {
  283. // return await request.post({
  284. // url: '/app-api/menduner/system/person/resume/job/status/update?status=' + data,
  285. // })
  286. // }
  287. // // 修改人才头像
  288. // export const updatePersonAvatar = async (url) => {
  289. // return await request.post({
  290. // url: `/app-api/menduner/system/person/resume/avatar/update?avatar=${url}`
  291. // })
  292. // }
  293. // // 修改个人画像
  294. // export const savePersonPortrait = async (data) => {
  295. // return await request.post({
  296. // url: '/app-api/menduner/system/person/resume/tag/update',
  297. // data
  298. // })
  299. // }