知与行后台管理端

apis.js 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. updateStatus: {
  25. method: 'PUT',
  26. url: `${prefix}/building/update/status`,
  27. },
  28. addBuilding: {
  29. method: 'POST',
  30. url: `${prefix}/building/add`,
  31. },
  32. buildingGetById: {
  33. method: 'GET',
  34. url: `${prefix}/buildingSelectId/id`,
  35. },
  36. deleteBuilding: {
  37. method: 'DELETE',
  38. url: `${prefix}/building/delete/id`,
  39. },
  40. buildingApartment: {
  41. method: 'GET',
  42. url: `${prefix}/buildingApartment/buildingId/id`,
  43. },
  44. buildingApartmentGetById: {
  45. method: 'GET',
  46. url: `${prefix}/buildingApartment/id`,
  47. },
  48. buildingApartmentUpdate: {
  49. method: 'PUT',
  50. url: `${prefix}/buildingApartment/update`,
  51. },
  52. buildingApartmentAdd: {
  53. method: 'POST',
  54. url: `${prefix}/buildingApartment/add`,
  55. },
  56. buildingApartmentDelete: {
  57. method: 'DELETE',
  58. url: `${prefix}/apartment/deleted/id`,
  59. },
  60. },
  61. buildingType: {
  62. getList: {
  63. method: 'GET',
  64. url: `${prefix}/tdBuildingType`,
  65. },
  66. delete: {
  67. method: 'DELETE',
  68. url: `${prefix}/tdBuildingType/id`,
  69. },
  70. update: {
  71. method: 'PUT',
  72. url: `${prefix}/tdBuildingType/id`,
  73. },
  74. add: {
  75. method: 'POST',
  76. url: `${prefix}/tdBuildingType`,
  77. },
  78. getById: {
  79. method: 'GET',
  80. url: `${prefix}/tdBuildingType/id`,
  81. },
  82. },
  83. news: {
  84. getList: {
  85. method: 'GET',
  86. url: `${prefix}/taNews`,
  87. },
  88. },
  89. customer: {
  90. drift: {
  91. method: 'GET',
  92. url: `${prefix}/customer/recommend/drift`,
  93. },
  94. report: {
  95. method: 'GET',
  96. url: `${prefix}/customer/recommend/report`,
  97. },
  98. recommender: {
  99. method: 'GET',
  100. url: `${prefix}/customer/recommend/recommender`,
  101. },
  102. auto: {
  103. method: 'PUT',
  104. url: `${prefix}/customer/recommend/verify/id`,
  105. },
  106. recommendGetById: {
  107. method: 'GET',
  108. url: `${prefix}/customer/recommend/getById/id`,
  109. },
  110. agents: {
  111. method: 'GET',
  112. url: `${prefix}/customer/agents`,
  113. },
  114. customerRecommend: {
  115. method: 'GET',
  116. url: `${prefix}/customer/recommend`,
  117. },
  118. consultant: {
  119. method: 'GET',
  120. url: `${prefix}/consultant`,
  121. },
  122. recommendEdit: {
  123. method: 'PUT',
  124. url: `${prefix}/customer/recommend/edit/id`,
  125. },
  126. taPointsRecords: {
  127. method: 'GET',
  128. url: `${prefix}/mine/taPointsRecords/id`,
  129. },
  130. recommend: {
  131. method: 'GET',
  132. url: `${prefix}/customer/recommend/id`,
  133. },
  134. InviteClientsList: {
  135. method: 'GET',
  136. url: `${prefix}/channel/InviteClientsList`,
  137. },
  138. CustomerRecommendGet: {
  139. method: 'GET',
  140. url: `${prefix}/customer/recommend/get/id`,
  141. },
  142. },
  143. indexEcharts: {
  144. userResource: {
  145. method: 'GET',
  146. url: `${prefix}/selectUserResource`
  147. },
  148. }
  149. // indexEcharts:{
  150. // list:{
  151. // method:'get',
  152. // url: `${commPrefix}/indexStatistical`
  153. // },
  154. // userResource: {
  155. // method:'get',
  156. // url: `${commPrefix}/selectUserResource`
  157. // },
  158. // userConversion: {
  159. // method:'get',
  160. // url: `${commPrefix}/selectConversion`
  161. // },
  162. // userActive: {
  163. // method:'get',
  164. // url: `${commPrefix}/selectActiveUserCount`
  165. // },
  166. // newUser: {
  167. // method:'get',
  168. // url: `${commPrefix}/selectNewsUserCount`
  169. // },
  170. // userBehavior: {
  171. // summary: {
  172. // method:'get',
  173. // url: `${commPrefix}/selectUserBehavior`
  174. // },
  175. // profile: {
  176. // method:'get',
  177. // url: `${commPrefix}/selectEventAll`
  178. // },
  179. // },
  180. // intentionUsers: {
  181. // method:'get',
  182. // url: `${commPrefix}/selectIntentionUser`
  183. // },
  184. // userSex: {
  185. // method:'get',
  186. // url: `${commPrefix}/selectSexUser`
  187. // },
  188. // userCity: {
  189. // method:'get',
  190. // url: `${commPrefix}/selectCityUser`
  191. // },
  192. // },
  193. }