student.js 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. const utils_request = require("../utils/request.js");
  3. function updateStudent(data) {
  4. return utils_request.request({
  5. url: "/main/student",
  6. method: "PUT",
  7. data
  8. });
  9. }
  10. function getStudent(id) {
  11. return utils_request.request({
  12. url: "/main/student/" + id,
  13. method: "GET"
  14. });
  15. }
  16. function getAppendixList(studentId) {
  17. return utils_request.request({
  18. url: "/main/studentAppendix/list",
  19. method: "GET",
  20. params: { studentId }
  21. });
  22. }
  23. function addAppendix(data) {
  24. return utils_request.request({
  25. url: "/main/studentAppendix/add",
  26. method: "POST",
  27. data
  28. });
  29. }
  30. function removeAppendix(ids) {
  31. return utils_request.request({
  32. url: "/main/studentAppendix/" + ids,
  33. method: "DELETE"
  34. });
  35. }
  36. exports.addAppendix = addAppendix;
  37. exports.getAppendixList = getAppendixList;
  38. exports.getStudent = getStudent;
  39. exports.removeAppendix = removeAppendix;
  40. exports.updateStudent = updateStudent;
  41. //# sourceMappingURL=../../.sourcemap/mp-weixin/api/student.js.map