expert.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}/expert/list`,
  6. name: "-",
  7. get: async function(data={}){
  8. return await http.get(this.url, data);
  9. }
  10. },
  11. platform: {
  12. url: `${config.API_URL}/expert/platform`,
  13. name: "-",
  14. get: async function(data={}){
  15. return await http.get(this.url, data);
  16. }
  17. },
  18. save: {
  19. url: `${config.API_URL}/expert/save`,
  20. name: "-",
  21. post: async function(data={}){
  22. return await http.post(this.url, data);
  23. }
  24. },
  25. del: {
  26. url: `${config.API_URL}/expert/del`,
  27. name: "-",
  28. post: async function(data={}){
  29. return await http.post(this.url, data);
  30. }
  31. },
  32. batch: {
  33. url: `${config.API_URL}/expert/batch`,
  34. name: "-",
  35. post: async function(data={}){
  36. return await http.post(this.url, data);
  37. }
  38. }
  39. }