知与行后台管理端

apis.js 680B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const prefix = '/api/admin'
  2. export default {
  3. user: {
  4. current: {
  5. method: 'GET',
  6. url: `${prefix}/taUser/current`,
  7. },
  8. signin: {
  9. method: 'POST',
  10. url: `${prefix}/taUser/signin`,
  11. },
  12. },
  13. building: {
  14. getList: {
  15. method: 'GET',
  16. url: `${prefix}/buildinglist`,
  17. },
  18. },
  19. buildingType: {
  20. getList: {
  21. method: 'GET',
  22. url: `${prefix}/tdBuildingType`,
  23. },
  24. delete: {
  25. method: 'DELETE',
  26. url: `${prefix}/tdBuildingType/id`,
  27. },
  28. update: {
  29. method: 'PUT',
  30. url: `${prefix}/tdBuildingType/id`,
  31. },
  32. add: {
  33. method: 'POST',
  34. url: `${prefix}/tdBuildingType`,
  35. },
  36. },
  37. }