拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
529B

  1. const { request } = require("../request/index");
  2. /**
  3. * get
  4. */
  5. export const get = function (url, params, showLoading = true) {
  6. return request({
  7. url: url,
  8. method: "GET",
  9. data: params,
  10. showLoading
  11. })
  12. }
  13. /**
  14. * post
  15. */
  16. export const post = function (url, params, showLoading = true) {
  17. return request({
  18. url: url,
  19. method: "POST",
  20. data: params,
  21. showLoading
  22. })
  23. }
  24. /**
  25. * put
  26. */
  27. export const put = function (url, params) {
  28. return request({
  29. url: url,
  30. method: "PUT",
  31. data: params
  32. })
  33. }