merStore.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import config from "@/config";
  2. import http from "@/utils/request";
  3. export default {
  4. list: {
  5. url: `${config.API_URL}/merchant/store/list`,
  6. name: "-",
  7. get: async function (params) {
  8. return await http.get(this.url, params);
  9. },
  10. },
  11. save: {
  12. url: `${config.API_URL}/merchant/store/save`,
  13. name: "-",
  14. post: async function (params) {
  15. return await http.post(this.url, params);
  16. },
  17. },
  18. edit: {
  19. url: `${config.API_URL}/merchant/store/edit`,
  20. name: "-",
  21. post: async function (params) {
  22. return await http.post(this.url, params);
  23. },
  24. },
  25. batch: {
  26. url: `${config.API_URL}/merchant/store/batch`,
  27. name: "-",
  28. post: async function (params) {
  29. return await http.post(this.url, params);
  30. },
  31. },
  32. del: {
  33. url: `${config.API_URL}/merchant/store/del`,
  34. name: "-",
  35. post: async function (params) {
  36. return await http.post(this.url, params);
  37. },
  38. },
  39. }