resume.js 5.3 KB

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