studentEducation.js 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '../utils/request';
  2. // 查询教育经历列表
  3. export function listStudentEducation(query) {
  4. return request({
  5. url: '/main/studentEducation/list',
  6. method: 'GET',
  7. params: query
  8. })
  9. }
  10. // 查询教育经历详细
  11. export function getStudentEducation(id) {
  12. return request({
  13. url: '/main/studentEducation/' + id,
  14. method: 'GET'
  15. })
  16. }
  17. // 新增教育经历
  18. export function addStudentEducation(data) {
  19. return request({
  20. url: '/main/studentEducation',
  21. method: 'POST',
  22. data: data
  23. })
  24. }
  25. // 修改教育经历
  26. export function updateStudentEducation(data) {
  27. return request({
  28. url: '/main/studentEducation',
  29. method: 'PUT',
  30. data: data
  31. })
  32. }
  33. // 删除教育经历
  34. export function delStudentEducation(id) {
  35. return request({
  36. url: '/main/studentEducation/' + id,
  37. method: 'DELETE'
  38. })
  39. }