知与行后台管理端

apis.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. const prefix = '/api/admin'
  2. export default {
  3. image: {
  4. uploadForAnt: {
  5. url: `${prefix}/antd/image`,
  6. method: 'POST',
  7. },
  8. upload: {
  9. url: `${prefix}/image`,
  10. method: 'POST',
  11. },
  12. },
  13. user: {
  14. current: {
  15. method: 'GET',
  16. url: `${prefix}/taUser/current`,
  17. },
  18. signin: {
  19. method: 'POST',
  20. url: `${prefix}/taUser/signin`,
  21. login: true
  22. },
  23. signout: {
  24. method: 'POST',
  25. url: `${prefix}/taUser/signout`,
  26. logout: true
  27. },
  28. },
  29. building: {
  30. getList: {
  31. method: 'GET',
  32. url: `${prefix}/buildinglist`,
  33. },
  34. updateStatus: {
  35. method: 'PUT',
  36. url: `${prefix}/building/update/status`,
  37. },
  38. addBuilding: {
  39. method: 'POST',
  40. url: `${prefix}/building/add`,
  41. },
  42. updateBuilding: {
  43. method: 'PUT',
  44. url: `${prefix}/building/update`,
  45. },
  46. buildingGetById: {
  47. method: 'GET',
  48. url: `${prefix}/buildingSelectId/id`,
  49. },
  50. deleteBuilding: {
  51. method: 'DELETE',
  52. url: `${prefix}/building/delete/id`,
  53. },
  54. buildingApartment: {
  55. method: 'GET',
  56. url: `${prefix}/buildingApartment/buildingId/id`,
  57. },
  58. buildingApartmentGetById: {
  59. method: 'GET',
  60. url: `${prefix}/buildingApartment/id`,
  61. },
  62. buildingApartmentUpdate: {
  63. method: 'PUT',
  64. url: `${prefix}/buildingApartment/update`,
  65. },
  66. buildingApartmentAdd: {
  67. method: 'POST',
  68. url: `${prefix}/buildingApartment/add`,
  69. },
  70. buildingApartmentDelete: {
  71. method: 'DELETE',
  72. url: `${prefix}/apartment/deleted/id`,
  73. },
  74. },
  75. buildingType: {
  76. getList: {
  77. method: 'GET',
  78. url: `${prefix}/tdBuildingType`,
  79. },
  80. delete: {
  81. method: 'DELETE',
  82. url: `${prefix}/tdBuildingType/id`,
  83. },
  84. update: {
  85. method: 'PUT',
  86. url: `${prefix}/tdBuildingType/id`,
  87. },
  88. add: {
  89. method: 'POST',
  90. url: `${prefix}/tdBuildingType`,
  91. },
  92. getById: {
  93. method: 'GET',
  94. url: `${prefix}/tdBuildingType/id`,
  95. },
  96. },
  97. news: {
  98. getList: {
  99. method: 'GET',
  100. url: `${prefix}/taNews`,
  101. },
  102. },
  103. customer: {
  104. drift: {
  105. method: 'GET',
  106. url: `${prefix}/customer/recommend/drift`,
  107. },
  108. report: {
  109. method: 'GET',
  110. url: `${prefix}/customer/recommend/report`,
  111. },
  112. recommender: {
  113. method: 'GET',
  114. url: `${prefix}/customer/recommend/recommender`,
  115. },
  116. auto: {
  117. method: 'PUT',
  118. url: `${prefix}/customer/recommend/verify/id`,
  119. },
  120. recommendGetById: {
  121. method: 'GET',
  122. url: `${prefix}/customer/recommend/getById/id`,
  123. },
  124. agents: {
  125. method: 'GET',
  126. url: `${prefix}/customer/agents`,
  127. },
  128. customerRecommend: {
  129. method: 'GET',
  130. url: `${prefix}/customer/recommend`,
  131. },
  132. consultant: {
  133. method: 'GET',
  134. url: `${prefix}/consultant`,
  135. },
  136. recommendEdit: {
  137. method: 'PUT',
  138. url: `${prefix}/customer/recommend/edit/id`,
  139. },
  140. taPointsRecords: {
  141. method: 'GET',
  142. url: `${prefix}/mine/taPointsRecords/id`,
  143. },
  144. recommend: {
  145. method: 'GET',
  146. url: `${prefix}/customer/recommend/id`,
  147. },
  148. InviteClientsList: {
  149. method: 'GET',
  150. url: `${prefix}/channel/InviteClientsList`,
  151. },
  152. CustomerRecommendGet: {
  153. method: 'GET',
  154. url: `${prefix}/customer/recommend/get/id`,
  155. },
  156. },
  157. indexEcharts: {
  158. userResource: {
  159. method: 'GET',
  160. url: `${prefix}/selectUserResource`
  161. },
  162. userCity: {
  163. method:'get',
  164. url: `${prefix}/selectCityUser`
  165. },
  166. },
  167. activity: {
  168. list: {
  169. method: 'GET',
  170. url: `${prefix}/iBuildingDynamicList`,
  171. },
  172. weight: {
  173. method: 'PUT',
  174. url: `${prefix}/buildingDynamic/weight`,
  175. },
  176. cancel: {
  177. method: 'PUT',
  178. url: `${prefix}/buildingDynamic/cancel/:id`,
  179. },
  180. send: {
  181. url: `${prefix}/buildingDynamic/send/:id`,
  182. method: 'PUT',
  183. },
  184. finish: {
  185. url: `${prefix}/buildingDynamic/finish`,
  186. method: 'PUT',
  187. },
  188. details: {
  189. url: `${prefix}/buildingDynamic/Details`,
  190. method: 'GET',
  191. },
  192. update: {
  193. url: `${prefix}/buildingDynamic/update`,
  194. method: 'PUT',
  195. },
  196. add: {
  197. url: `${prefix}/buildingDynamic/add`,
  198. method: 'POST',
  199. },
  200. poster: {
  201. url: `${prefix}/poster`,
  202. method: 'GET',
  203. },
  204. updatePoster: {
  205. url: `${prefix}/poster/:id`,
  206. method: 'PUT',
  207. },
  208. addPoster: {
  209. url: `${prefix}/poster`,
  210. method: 'POST',
  211. },
  212. shareContent: {
  213. url: `${prefix}/shareContent`,
  214. method: 'GET',
  215. },
  216. updateShareContent: {
  217. url: `${prefix}/shareContent/:id`,
  218. method: 'PUT',
  219. },
  220. addShareContent: {
  221. url: `${prefix}/shareContent`,
  222. method: 'POST',
  223. },
  224. signList: {
  225. url: `${prefix}/SignList`,
  226. method: 'GET',
  227. }
  228. },
  229. integralMall: {
  230. tdPointsRules: {
  231. url: `${prefix}/tdPointsRules`,
  232. method: 'GET',
  233. },
  234. change: {
  235. url: `${prefix}/tdPointsRules/change`,
  236. method: 'PUT',
  237. },
  238. taGoods: {
  239. url: `${prefix}/taGoods/:id`,
  240. method: 'GET',
  241. },
  242. updateTaGoods: {
  243. url: `${prefix}/taGoods`,
  244. method: 'PUT',
  245. },
  246. addTaGoods: {
  247. url: `${prefix}/taGoods/add`,
  248. method: 'POST',
  249. },
  250. taPointsExchange: {
  251. url: `${prefix}/taPointsExchange`,
  252. method: 'GET',
  253. },
  254. getTaGoods: {
  255. url: `${prefix}/taGoods`,
  256. method: 'GET',
  257. },
  258. changeTaGoods: {
  259. url: `${prefix}/taGoods/change`,
  260. method: 'PUT',
  261. },
  262. changeTaPointsExchange: {
  263. url: `${prefix}/taPointsExchange/change`,
  264. method: 'PUT',
  265. }
  266. },
  267. carsuseFigure: {
  268. extendContent: {
  269. url: `${prefix}/extendContent`,
  270. method: 'GET',
  271. },
  272. finish: {
  273. url: `${prefix}/buildingDynamic/finish`,
  274. method: 'PUT',
  275. },
  276. updataExtendContent: {
  277. url: `${prefix}/extendContent/:id`,
  278. method: 'PUT',
  279. },
  280. getExtendContent: {
  281. url: `${prefix}/extendContent/:id`,
  282. method: 'GET',
  283. },
  284. addExtendContent: {
  285. url: `${prefix}/extendContent`,
  286. method: 'POST',
  287. }
  288. },
  289. system: {
  290. taPolicy: {
  291. url: `${prefix}/taPolicy/:id`,
  292. method: 'GET',
  293. },
  294. updateTaPolicy: {
  295. url: `${prefix}/taPolicy/:id`,
  296. method: 'PUT',
  297. },
  298. addTaPolicy: {
  299. url: `${prefix}/taPolicy`,
  300. method: 'POST',
  301. },
  302. getTaPolicy: {
  303. url: `${prefix}/taPolicy`,
  304. method: 'GET',
  305. },
  306. deleteTaPolicy: {
  307. url: `${prefix}/taPolicy/:id`,
  308. method: 'DELETE',
  309. },
  310. tdBizEventIntention: {
  311. url: `${prefix}/tdBizEventIntention`,
  312. method: 'GET',
  313. },
  314. taBuildingIntentionAddOrUpdate: {
  315. url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
  316. method: 'POST',
  317. },
  318. taCustomerMessage: {
  319. url: `${prefix}/taCustomerMessage`,
  320. method: 'GET',
  321. },
  322. tdReports: {
  323. url: `${prefix}/tdReports`,
  324. method: 'GET',
  325. },
  326. taBuildingReports: {
  327. url: `${prefix}/taBuildingReports`,
  328. method: 'GET',
  329. },
  330. addTaBuildingReports: {
  331. url: `${prefix}/taBuildingReport/add`,
  332. method: 'POST',
  333. }
  334. },
  335. staff: {
  336. taUser: {
  337. url: `${prefix}/taUser`,
  338. method: 'GET',
  339. },
  340. taTags: {
  341. url: `${prefix}/taTags`,
  342. method: 'GET',
  343. },
  344. getTaUser: {
  345. url: `${prefix}/taUser/:id`,
  346. method: 'GET',
  347. },
  348. updateTaUser: {
  349. url: `${prefix}/taUser/:id`,
  350. method: 'PUT',
  351. },
  352. addTaUser: {
  353. url: `${prefix}/taUser`,
  354. method: 'POST',
  355. },
  356. change: {
  357. url: `${prefix}/turn/taUser/:id/:type`,
  358. method: 'PUT',
  359. }
  360. }
  361. // indexEcharts:{
  362. // list:{
  363. // method:'get',
  364. // url: `${commPrefix}/indexStatistical`
  365. // },
  366. // userResource: {
  367. // method:'get',
  368. // url: `${commPrefix}/selectUserResource`
  369. // },
  370. // userConversion: {
  371. // method:'get',
  372. // url: `${commPrefix}/selectConversion`
  373. // },
  374. // userActive: {
  375. // method:'get',
  376. // url: `${commPrefix}/selectActiveUserCount`
  377. // },
  378. // newUser: {
  379. // method:'get',
  380. // url: `${commPrefix}/selectNewsUserCount`
  381. // },
  382. // userBehavior: {
  383. // summary: {
  384. // method:'get',
  385. // url: `${commPrefix}/selectUserBehavior`
  386. // },
  387. // profile: {
  388. // method:'get',
  389. // url: `${commPrefix}/selectEventAll`
  390. // },
  391. // },
  392. // intentionUsers: {
  393. // method:'get',
  394. // url: `${commPrefix}/selectIntentionUser`
  395. // },
  396. // userSex: {
  397. // method:'get',
  398. // url: `${commPrefix}/selectSexUser`
  399. // },
  400. // userCity: {
  401. // method:'get',
  402. // url: `${commPrefix}/selectCityUser`
  403. // },
  404. // },
  405. }