index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import service from "@/utils/http";
  2. export function queryInfo(params) {
  3. return service.request({
  4. url: "api/v1/educational/studentInfo/queryInfo",
  5. method: "get",
  6. params,
  7. });
  8. }
  9. export function add(data) {
  10. return service.request({
  11. url: "api/v1/educational/studentInfo/add",
  12. method: "post",
  13. data,
  14. headers: { "Content-Type": "application/json;charset=UTF-8" },
  15. });
  16. }
  17. export function edit(data) {
  18. return service.request({
  19. url: "api/v1/educational/studentInfo/edit",
  20. method: "put",
  21. data,
  22. headers: { "Content-Type": "application/json;charset=UTF-8" },
  23. });
  24. }
  25. export function del(params) {
  26. return service.request({
  27. url: "api/v1/educational/studentInfo/delete/" + params,
  28. method: "delete",
  29. params: {},
  30. });
  31. }
  32. export function batchDelete(params) {
  33. return service.request({
  34. url: "api/v1/educational/studentInfo/batchDelete",
  35. method: "delete",
  36. data: params,
  37. headers: { "Content-Type": "application/json;charset=UTF-8" },
  38. });
  39. }
  40. export function getInfo(val) {
  41. return service.request({
  42. url: "api/v1/educational/studentInfo/detail?studentInfoId=" + val,
  43. method: "get",
  44. params: {},
  45. });
  46. }