communityService.js 904 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import request from "../../common/request"
  2. export default {
  3. save: function (inputForm) {
  4. return request({
  5. url: "/info/community/community/save",
  6. method: "post",
  7. data: inputForm,
  8. });
  9. },
  10. delete: function (ids) {
  11. return request({
  12. url: "/info/community/community/delete",
  13. method: "delete",
  14. params: { ids: ids },
  15. });
  16. },
  17. getListById: function (id) {
  18. return request({
  19. url: "/info/community/community/getListById",
  20. method: "get",
  21. params: { id: id },
  22. });
  23. },
  24. queryById: function (id) {
  25. return request({
  26. url: "/info/community/community/queryById",
  27. method: "get",
  28. params: { id: id },
  29. });
  30. },
  31. drag: function (inputForm) {
  32. return request({
  33. url: "/info/community/community/drag",
  34. method: "post",
  35. data: inputForm,
  36. });
  37. },
  38. treeData: function () {
  39. return request({
  40. url: "/info/community/community/treeData",
  41. method: "get",
  42. });
  43. },
  44. };