知与行后台管理端

apis.js 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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. action: 'admin.taUser.current.get',
  18. },
  19. signin: {
  20. method: 'POST',
  21. url: `${prefix}/taUser/signin`,
  22. login: true,
  23. action: 'admin.taUser.signin.post',
  24. },
  25. signout: {
  26. method: 'POST',
  27. url: `${prefix}/taUser/signout`,
  28. logout: true
  29. },
  30. },
  31. building: {
  32. getList: {
  33. method: 'GET',
  34. url: `${prefix}/buildinglist`,
  35. action: 'admin.buildinglist.get',
  36. },
  37. updateStatus: {
  38. method: 'PUT',
  39. url: `${prefix}/building/update/status`,
  40. action: 'admin.building.update.status.put',
  41. },
  42. addBuilding: {
  43. method: 'POST',
  44. url: `${prefix}/building/add`,
  45. action: 'admin.building.add.post',
  46. },
  47. updateBuilding: {
  48. method: 'PUT',
  49. url: `${prefix}/building/update`,
  50. action: 'admin.building.update.put',
  51. },
  52. buildingGetById: {
  53. method: 'GET',
  54. url: `${prefix}/buildingSelectId/id`,
  55. action: 'admin.buildingSelectId.id.get',
  56. },
  57. deleteBuilding: {
  58. method: 'DELETE',
  59. url: `${prefix}/building/delete/id`,
  60. action: 'admin.building.delete.id.delete',
  61. },
  62. buildingApartment: {
  63. method: 'GET',
  64. url: `${prefix}/buildingApartment/buildingId/id`,
  65. action: 'admin.buildingApartment.buildingId.id.get',
  66. },
  67. buildingApartmentGetById: {
  68. method: 'GET',
  69. url: `${prefix}/buildingApartment/id`,
  70. action: 'admin.buildingApartment.id.get',
  71. },
  72. buildingApartmentUpdate: {
  73. method: 'PUT',
  74. url: `${prefix}/buildingApartment/update`,
  75. action: 'admin.buildingApartment.update.put',
  76. },
  77. buildingApartmentAdd: {
  78. method: 'POST',
  79. url: `${prefix}/buildingApartment/add`,
  80. action: 'admin.buildingApartment.add.post',
  81. },
  82. buildingApartmentDelete: {
  83. method: 'DELETE',
  84. url: `${prefix}/apartment/deleted/id`,
  85. action: 'admin.apartment.deleted.id.delete',
  86. },
  87. buildingSelect: {
  88. url: `${prefix}/buildinglist/select`,
  89. method: 'GET',
  90. action: 'select',
  91. }
  92. },
  93. buildingType: {
  94. getList: {
  95. method: 'GET',
  96. url: `${prefix}/tdBuildingType`,
  97. action: 'admin.tdBuildingType.get',
  98. },
  99. delete: {
  100. method: 'DELETE',
  101. url: `${prefix}/tdBuildingType/id`,
  102. action: 'admin.tdBuildingType.id.delete',
  103. },
  104. update: {
  105. method: 'PUT',
  106. url: `${prefix}/tdBuildingType/id`,
  107. action: 'admin.tdBuildingType.id.put',
  108. },
  109. add: {
  110. method: 'POST',
  111. url: `${prefix}/tdBuildingType`,
  112. action: 'admin.tdBuildingType.post',
  113. },
  114. getById: {
  115. method: 'GET',
  116. url: `${prefix}/tdBuildingType/id`,
  117. action: 'admin.tdBuildingType.id.get',
  118. },
  119. },
  120. news: {
  121. getList: {
  122. method: 'GET',
  123. url: `${prefix}/taNews`,
  124. action: 'admin.taNews.get',
  125. },
  126. },
  127. customer: {
  128. drift: {
  129. method: 'GET',
  130. url: `${prefix}/customer/recommend/drift`,
  131. action: 'admin.customer.recommend.drift.get',
  132. },
  133. report: {
  134. method: 'GET',
  135. url: `${prefix}/customer/recommend/report`,
  136. action: 'admin.customer.recommend.report.get',
  137. },
  138. recommender: {
  139. method: 'GET',
  140. url: `${prefix}/customer/recommend/recommender`,
  141. action: 'admin.customer.recommend.recommender.get',
  142. },
  143. auto: {
  144. method: 'PUT',
  145. url: `${prefix}/customer/recommend/verify/id`,
  146. action: 'admin.customer.recommend.verify.id.put',
  147. },
  148. recommendGetById: {
  149. method: 'GET',
  150. url: `${prefix}/customer/recommend/getById/id`,
  151. action: 'admin.customer.recommend.getById.id.get',
  152. },
  153. agents: {
  154. method: 'GET',
  155. url: `${prefix}/customer/agents`,
  156. action: 'admin.customer.agents.get',
  157. },
  158. customerRecommend: {
  159. method: 'GET',
  160. url: `${prefix}/customer/recommend`,
  161. action: 'admin.customer.recommend.get',
  162. },
  163. consultant: {
  164. method: 'GET',
  165. url: `${prefix}/consultant`,
  166. action: 'admin.consultant.get',
  167. },
  168. recommendEdit: {
  169. method: 'PUT',
  170. url: `${prefix}/customer/recommend/edit/id`,
  171. action: 'admin.customer.recommend.edit.id.put',
  172. },
  173. taPointsRecords: {
  174. method: 'GET',
  175. url: `${prefix}/mine/taPointsRecords/id`,
  176. action: 'admin.mine.taPointsRecords.id.get',
  177. },
  178. recommend: {
  179. method: 'GET',
  180. url: `${prefix}/customer/recommend/id`,
  181. action: 'admin.customer.recommend.id.get',
  182. },
  183. InviteClientsList: {
  184. method: 'GET',
  185. url: `${prefix}/channel/InviteClientsList`,
  186. action: 'admin.channel.InviteClientsList.get',
  187. },
  188. CustomerRecommendGet: {
  189. method: 'GET',
  190. url: `${prefix}/customer/recommend/get/id`,
  191. action: 'admin.customer.recommend.get.id.get',
  192. },
  193. },
  194. indexEcharts: {
  195. userResource: {
  196. method: 'GET',
  197. url: `${prefix}/selectUserResource`
  198. },
  199. userBehavior: {
  200. summary: {
  201. method: 'GET',
  202. url: `${prefix}/selectUserBehavior`
  203. },
  204. profile: {
  205. method: 'GET',
  206. url: `${prefix}/selectEventAll`
  207. },
  208. },
  209. userActive: {
  210. method: 'GET',
  211. url: `${prefix}/selectActiveUserCount`
  212. },
  213. userSex: {
  214. method: 'GET',
  215. url: `${prefix}/selectSexUser`
  216. },
  217. newUser: {
  218. method: 'GET',
  219. url: `${prefix}/selectNewsUserCount`
  220. },
  221. userConversion: {
  222. method: 'GET',
  223. url: `${prefix}/selectConversion`
  224. },
  225. intentionUsers: {
  226. method: 'GET',
  227. url: `${prefix}/selectIntentionUser`
  228. },
  229. userCity: {
  230. method:'get',
  231. url: `${prefix}/selectCityUser`,
  232. action: 'admin.selectCityUser.get'
  233. },
  234. },
  235. activity: {
  236. list: {
  237. method: 'GET',
  238. url: `${prefix}/iBuildingDynamicList`,
  239. action: 'admin.iBuildingDynamicList.get',
  240. },
  241. weight: {
  242. method: 'PUT',
  243. url: `${prefix}/buildingDynamic/weight`,
  244. action: 'admin.buildingDynamic.weight.put',
  245. },
  246. cancel: {
  247. method: 'PUT',
  248. url: `${prefix}/buildingDynamic/cancel/:id`,
  249. action: 'admin.buildingDynamic.cancel.dynamicId.put'
  250. },
  251. send: {
  252. url: `${prefix}/buildingDynamic/send/:id`,
  253. method: 'PUT',
  254. action: 'admin.buildingDynamic.send.dynamicId.put'
  255. },
  256. finish: {
  257. url: `${prefix}/buildingDynamic/finish`,
  258. method: 'PUT',
  259. action: 'admin.buildingDynamic.finish.put'
  260. },
  261. details: {
  262. url: `${prefix}/buildingDynamic/Details`,
  263. method: 'GET',
  264. action: 'admin.buildingDynamic.Details.get',
  265. },
  266. update: {
  267. url: `${prefix}/buildingDynamic/update`,
  268. method: 'PUT',
  269. action: 'admin.buildingDynamic.update.put',
  270. },
  271. add: {
  272. url: `${prefix}/buildingDynamic/add`,
  273. method: 'POST',
  274. action: 'admin.buildingDynamic.add.post',
  275. },
  276. poster: {
  277. url: `${prefix}/poster`,
  278. method: 'GET',
  279. action: 'admin.poster.get',
  280. },
  281. updatePoster: {
  282. url: `${prefix}/poster/:id`,
  283. method: 'PUT',
  284. action: 'admin.poster.id.put',
  285. },
  286. addPoster: {
  287. url: `${prefix}/poster`,
  288. method: 'POST',
  289. action: 'admin.poster.post',
  290. },
  291. shareContent: {
  292. url: `${prefix}/shareContent`,
  293. method: 'GET',
  294. action: 'admin.shareContent.get',
  295. },
  296. updateShareContent: {
  297. url: `${prefix}/shareContent/:id`,
  298. method: 'PUT',
  299. action: 'admin.shareContent.id.put',
  300. },
  301. addShareContent: {
  302. url: `${prefix}/shareContent`,
  303. method: 'POST',
  304. action: 'admin.shareContent.post',
  305. },
  306. signList: {
  307. url: `${prefix}/SignList`,
  308. method: 'GET',
  309. action: 'admin.SignList.get',
  310. }
  311. },
  312. integralMall: {
  313. tdPointsRules: {
  314. url: `${prefix}/tdPointsRules`,
  315. method: 'GET',
  316. action: 'admin.tdPointsRules.get',
  317. },
  318. change: {
  319. url: `${prefix}/tdPointsRules/change`,
  320. method: 'PUT',
  321. action: 'admin.tdPointsRules.change.put',
  322. },
  323. taGoods: {
  324. url: `${prefix}/taGoods/:id`,
  325. method: 'GET',
  326. action: 'admin.taGoods.id.get',
  327. },
  328. updateTaGoods: {
  329. url: `${prefix}/taGoods`,
  330. method: 'PUT',
  331. action: 'admin.taGoods.put',
  332. },
  333. addTaGoods: {
  334. url: `${prefix}/taGoods/add`,
  335. method: 'POST',
  336. action: 'admin.taGoods.add.post',
  337. },
  338. taPointsExchange: {
  339. url: `${prefix}/taPointsExchange`,
  340. method: 'GET',
  341. action: 'admin.taPointsExchange.get',
  342. },
  343. getTaGoods: {
  344. url: `${prefix}/taGoods`,
  345. method: 'GET',
  346. action: 'admin.taGoods.get',
  347. },
  348. changeTaGoods: {
  349. url: `${prefix}/taGoods/change`,
  350. method: 'PUT',
  351. action: 'admin.taGoods.change.put',
  352. },
  353. changeTaPointsExchange: {
  354. url: `${prefix}/taPointsExchange/change`,
  355. method: 'PUT',
  356. action: 'admin.taPointsExchange.change.put',
  357. }
  358. },
  359. carsuseFigure: {
  360. extendContent: {
  361. url: `${prefix}/extendContent`,
  362. method: 'GET',
  363. action: 'admin.extendContent.get',
  364. },
  365. finish: {
  366. url: `${prefix}/buildingDynamic/finish`,
  367. method: 'PUT',
  368. action: 'admin.buildingDynamic.finish.put',
  369. },
  370. updataExtendContent: {
  371. url: `${prefix}/extendContent/:id`,
  372. method: 'PUT',
  373. action: 'admin.extendContent.id.put',
  374. },
  375. getExtendContent: {
  376. url: `${prefix}/extendContent/:id`,
  377. method: 'GET',
  378. action: 'admin.extendContent.id.get',
  379. },
  380. addExtendContent: {
  381. url: `${prefix}/extendContent`,
  382. method: 'POST',
  383. action: 'admin.extendContent.post',
  384. }
  385. },
  386. system: {
  387. taPolicy: {
  388. url: `${prefix}/taPolicy/:id`,
  389. method: 'GET',
  390. action: 'admin.taPolicy.id.get',
  391. },
  392. updateTaPolicy: {
  393. url: `${prefix}/taPolicy/:id`,
  394. method: 'PUT',
  395. action: 'admin.taPolicy.id.put',
  396. },
  397. addTaPolicy: {
  398. url: `${prefix}/taPolicy`,
  399. method: 'POST',
  400. action: 'admin.taPolicy.post',
  401. },
  402. getTaPolicy: {
  403. url: `${prefix}/taPolicy`,
  404. method: 'GET',
  405. action: 'admin.taPolicy.get',
  406. },
  407. deleteTaPolicy: {
  408. url: `${prefix}/taPolicy/:id`,
  409. method: 'DELETE',
  410. action: 'admin.taPolicy.id.delete',
  411. },
  412. tdBizEventIntention: {
  413. url: `${prefix}/tdBizEventIntention`,
  414. method: 'GET',
  415. action: 'admin.tdBizEventIntention.get',
  416. },
  417. taBuildingIntentionAddOrUpdate: {
  418. url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
  419. method: 'POST',
  420. action: 'admin.taBuildingIntentionAddOrUpdate.buildingId.post',
  421. },
  422. taCustomerMessage: {
  423. url: `${prefix}/taCustomerMessage`,
  424. method: 'GET',
  425. action: 'admin.taCustomerMessage.get',
  426. },
  427. tdReports: {
  428. url: `${prefix}/tdReports`,
  429. method: 'GET',
  430. action: 'admin.tdReports.get',
  431. },
  432. taBuildingReports: {
  433. url: `${prefix}/taBuildingReports`,
  434. method: 'GET',
  435. action: 'admin.taBuildingReports.get',
  436. },
  437. addTaBuildingReports: {
  438. url: `${prefix}/taBuildingReport/add`,
  439. method: 'POST',
  440. action: 'admin.taBuildingReport.add.post',
  441. }
  442. },
  443. staff: {
  444. taUser: {
  445. url: `${prefix}/taUser`,
  446. method: 'GET',
  447. action: 'admin.taUser.get',
  448. },
  449. taTags: {
  450. url: `${prefix}/taTags`,
  451. method: 'GET',
  452. action: 'admin.taTags.get',
  453. },
  454. getTaUser: {
  455. url: `${prefix}/taUser/:id`,
  456. method: 'GET',
  457. action: 'admin.taUser.id.get',
  458. },
  459. updateTaUser: {
  460. url: `${prefix}/taUser/:id`,
  461. method: 'PUT',
  462. action: 'admin.taUser.id.put',
  463. },
  464. addTaUser: {
  465. url: `${prefix}/taUser`,
  466. method: 'POST',
  467. action: 'admin.taUser.post',
  468. },
  469. change: {
  470. url: `${prefix}/turn/taUser/:id/:type`,
  471. method: 'PUT',
  472. action: 'admin.turn.taUser.put',
  473. },
  474. },
  475. channelList: {
  476. getList: {
  477. url: `${prefix}/channel`,
  478. method: 'GET',
  479. action: 'admin.channel.get',
  480. },
  481. addChannel: {
  482. url: `${prefix}/channel`,
  483. method: 'POST',
  484. action: 'admin.channel.post',
  485. },
  486. getById: {
  487. url: `${prefix}/channel/:id`,
  488. method: 'GET',
  489. action: 'admin.channel.id.get',
  490. },
  491. editChannel: {
  492. url: `${prefix}/channel/:id`,
  493. method: 'PUT',
  494. action: 'admin.channel.id.put',
  495. },
  496. getListBroker: {
  497. url: `${prefix}/channel/broker`,
  498. method: 'GET',
  499. action: 'admin.channel.broker.get',
  500. },
  501. getListRecommend: {
  502. url: `${prefix}/customer/recommend/:id`,
  503. method: 'GET',
  504. action: 'admin.customer.recommend.id.get',
  505. },
  506. getListInvite: {
  507. url: `${prefix}/channel/InviteClientsList`,
  508. method: 'GET',
  509. action: 'admin.InviteClientsList.get',
  510. },
  511. },
  512. role: {
  513. getRoleList: {
  514. url: `${prefix}/taRole`,
  515. method: 'GET',
  516. action: 'admin.taRole.get',
  517. },
  518. stop: {
  519. url: `${prefix}/taRole/stop/:id`,
  520. method: 'PUT',
  521. action: 'admin.taRole.stop.id.PUT',
  522. },
  523. menuList: {
  524. url: `${prefix}/menuList`,
  525. method: 'GET',
  526. action: 'admin.menuList.get',
  527. },
  528. buttonList: {
  529. url: `${prefix}/buttonList`,
  530. method: 'GET',
  531. action: 'admin.buttonList.get',
  532. },
  533. buttonAndMenuList: {
  534. url: `${prefix}/taRole/details/:id`,
  535. method: 'GET',
  536. action: 'admin.taRole.details.id.get'
  537. },
  538. updateAuthMenu: {
  539. url: `${prefix}/updateAuthMenu`,
  540. method: 'POST',
  541. action: 'admin.updateAuthMenu.post',
  542. },
  543. },
  544. }