知与行后台管理端

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. const prefix = '/api/admin'
  2. export default {
  3. image: {
  4. upload: {
  5. url: `${prefix}/antd/image`,
  6. method: 'POST',
  7. }
  8. },
  9. user: {
  10. current: {
  11. method: 'GET',
  12. url: `${prefix}/taUser/current`,
  13. },
  14. signin: {
  15. method: 'POST',
  16. url: `${prefix}/taUser/signin`,
  17. },
  18. },
  19. building: {
  20. getList: {
  21. method: 'GET',
  22. url: `${prefix}/buildinglist`,
  23. },
  24. },
  25. buildingType: {
  26. getList: {
  27. method: 'GET',
  28. url: `${prefix}/tdBuildingType`,
  29. },
  30. delete: {
  31. method: 'DELETE',
  32. url: `${prefix}/tdBuildingType/id`,
  33. },
  34. update: {
  35. method: 'PUT',
  36. url: `${prefix}/tdBuildingType/id`,
  37. },
  38. add: {
  39. method: 'POST',
  40. url: `${prefix}/tdBuildingType`,
  41. },
  42. getById: {
  43. method: 'GET',
  44. url: `${prefix}/tdBuildingType/id`,
  45. },
  46. },
  47. news: {
  48. getList: {
  49. method: 'GET',
  50. url: `${prefix}/taNews`,
  51. },
  52. },
  53. customer: {
  54. drift: {
  55. method: 'GET',
  56. url: `${prefix}/customer/recommend/drift`,
  57. },
  58. report: {
  59. method: 'GET',
  60. url: `${prefix}/customer/recommend/report`,
  61. },
  62. recommender: {
  63. method: 'GET',
  64. url: `${prefix}/customer/recommend/recommender`,
  65. },
  66. auto: {
  67. method: 'PUT',
  68. url: `${prefix}/customer/recommend/verify/id`,
  69. },
  70. recommendGetById: {
  71. method: 'GET',
  72. url: `${prefix}/customer/recommend/getById/id`,
  73. },
  74. agents: {
  75. method: 'GET',
  76. url: `${prefix}/customer/agents`,
  77. },
  78. customerRecommend: {
  79. method: 'GET',
  80. url: `${prefix}/customer/recommend`,
  81. },
  82. consultant: {
  83. method: 'GET',
  84. url: `${prefix}/consultant`,
  85. },
  86. recommendEdit: {
  87. method: 'PUT',
  88. url: `${prefix}/customer/recommend/edit/id`,
  89. },
  90. taPointsRecords: {
  91. method: 'GET',
  92. url: `${prefix}/mine/taPointsRecords/id`,
  93. },
  94. },
  95. }