知与行后台管理端

apis.js 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  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. delete: {
  127. method: 'DELETE',
  128. url: `${prefix}/taNews/:id`,
  129. action: 'admin.taNews.id.delete',
  130. },
  131. cancel: {
  132. method: 'PUT',
  133. url: `${prefix}/taNews/:id`,
  134. action: 'admin.taNews.id.put',
  135. },
  136. },
  137. newsType: {
  138. list: {
  139. method: 'GET',
  140. url: `${prefix}/taNewsType`,
  141. action: 'admin.taNewsType.get',
  142. },
  143. delete: {
  144. method: 'DELETE',
  145. url: `${prefix}/taNewsType/:id`,
  146. action: 'admin.taNewsType.id.delete',
  147. },
  148. },
  149. customer: {
  150. drift: {
  151. method: 'GET',
  152. url: `${prefix}/customer/recommend/drift`,
  153. action: 'admin.customer.recommend.drift.get',
  154. },
  155. report: {
  156. method: 'GET',
  157. url: `${prefix}/customer/recommend/report`,
  158. action: 'admin.customer.recommend.report.get',
  159. },
  160. recommender: {
  161. method: 'GET',
  162. url: `${prefix}/customer/recommend/recommender`,
  163. action: 'admin.customer.recommend.recommender.get',
  164. },
  165. auto: {
  166. method: 'PUT',
  167. url: `${prefix}/customer/recommend/verify/id`,
  168. action: 'admin.customer.recommend.verify.id.put',
  169. },
  170. recommendGetById: {
  171. method: 'GET',
  172. url: `${prefix}/customer/recommend/getById/id`,
  173. action: 'admin.customer.recommend.getById.id.get',
  174. },
  175. agents: {
  176. method: 'GET',
  177. url: `${prefix}/customer/agents`,
  178. action: 'admin.customer.agents.get',
  179. },
  180. customerRecommend: {
  181. method: 'GET',
  182. url: `${prefix}/customer/recommend`,
  183. action: 'admin.customer.recommend.get',
  184. },
  185. consultant: {
  186. method: 'GET',
  187. url: `${prefix}/consultant`,
  188. action: 'admin.consultant.get',
  189. },
  190. recommendEdit: {
  191. method: 'PUT',
  192. url: `${prefix}/customer/recommend/edit/id`,
  193. action: 'admin.customer.recommend.edit.id.put',
  194. },
  195. taPointsRecords: {
  196. method: 'GET',
  197. url: `${prefix}/mine/taPointsRecords/id`,
  198. action: 'admin.mine.taPointsRecords.id.get',
  199. },
  200. recommend: {
  201. method: 'GET',
  202. url: `${prefix}/customer/recommend/id`,
  203. action: 'admin.customer.recommend.id.get',
  204. },
  205. InviteClientsList: {
  206. method: 'GET',
  207. url: `${prefix}/channel/InviteClientsList`,
  208. action: 'admin.channel.InviteClientsList.get',
  209. },
  210. CustomerRecommendGet: {
  211. method: 'GET',
  212. url: `${prefix}/customer/recommend/get/id`,
  213. action: 'admin.customer.recommend.get.id.get',
  214. },
  215. },
  216. indexEcharts: {
  217. userResource: {
  218. method: 'GET',
  219. url: `${prefix}/selectUserResource`,
  220. action: 'userStatistics',
  221. },
  222. userBehavior: {
  223. summary: {
  224. method: 'GET',
  225. url: `${prefix}/selectUserBehavior`,
  226. action: 'userBehaviorStatistics',
  227. },
  228. profile: {
  229. method: 'GET',
  230. url: `${prefix}/selectEventAll`,
  231. action: 'behaviorIncident',
  232. },
  233. },
  234. userActive: {
  235. method: 'GET',
  236. url: `${prefix}/selectActiveUserCount`,
  237. action: 'selectActiveUserCount',
  238. },
  239. userSex: {
  240. method: 'GET',
  241. url: `${prefix}/selectSexUser`,
  242. action: 'selectSexUser',
  243. },
  244. newUser: {
  245. method: 'GET',
  246. url: `${prefix}/selectNewsUserCount`,
  247. action: 'selectNewsUserCount',
  248. },
  249. userConversion: {
  250. method: 'GET',
  251. url: `${prefix}/selectConversion`,
  252. action: 'selectConversion',
  253. },
  254. intentionUsers: {
  255. method: 'GET',
  256. url: `${prefix}/selectIntentionUser`,
  257. action: 'selectIntentionUser',
  258. },
  259. userCity: {
  260. method: 'get',
  261. url: `${prefix}/selectCityUser`,
  262. action: 'admin.selectCityUser.get',
  263. },
  264. },
  265. activity: {
  266. list: {
  267. method: 'GET',
  268. url: `${prefix}/iBuildingDynamicList`,
  269. action: 'admin.iBuildingDynamicList.get',
  270. },
  271. weight: {
  272. method: 'PUT',
  273. url: `${prefix}/buildingDynamic/weight`,
  274. action: 'admin.buildingDynamic.weight.put',
  275. },
  276. cancel: {
  277. method: 'PUT',
  278. url: `${prefix}/buildingDynamic/cancel/:id`,
  279. action: 'admin.buildingDynamic.cancel.dynamicId.put',
  280. },
  281. send: {
  282. url: `${prefix}/buildingDynamic/send/:id`,
  283. method: 'PUT',
  284. action: 'admin.buildingDynamic.send.dynamicId.put',
  285. },
  286. finish: {
  287. url: `${prefix}/buildingDynamic/finish`,
  288. method: 'PUT',
  289. action: 'admin.buildingDynamic.finish.put',
  290. },
  291. details: {
  292. url: `${prefix}/buildingDynamic/Details`,
  293. method: 'GET',
  294. action: 'admin.buildingDynamic.Details.get',
  295. },
  296. update: {
  297. url: `${prefix}/buildingDynamic/update`,
  298. method: 'PUT',
  299. action: 'admin.buildingDynamic.update.put',
  300. },
  301. add: {
  302. url: `${prefix}/buildingDynamic/add`,
  303. method: 'POST',
  304. action: 'admin.buildingDynamic.add.post',
  305. },
  306. poster: {
  307. url: `${prefix}/poster`,
  308. method: 'GET',
  309. action: 'admin.poster.get',
  310. },
  311. updatePoster: {
  312. url: `${prefix}/poster/:id`,
  313. method: 'PUT',
  314. action: 'admin.poster.id.put',
  315. },
  316. addPoster: {
  317. url: `${prefix}/poster`,
  318. method: 'POST',
  319. action: 'admin.poster.post',
  320. },
  321. shareContent: {
  322. url: `${prefix}/shareContent`,
  323. method: 'GET',
  324. action: 'admin.shareContent.get',
  325. },
  326. updateShareContent: {
  327. url: `${prefix}/shareContent/:id`,
  328. method: 'PUT',
  329. action: 'admin.shareContent.id.put',
  330. },
  331. addShareContent: {
  332. url: `${prefix}/shareContent`,
  333. method: 'POST',
  334. action: 'admin.shareContent.post',
  335. },
  336. signList: {
  337. url: `${prefix}/SignList`,
  338. method: 'GET',
  339. action: 'admin.SignList.get',
  340. }
  341. },
  342. integralMall: {
  343. tdPointsRules: {
  344. url: `${prefix}/tdPointsRules`,
  345. method: 'GET',
  346. action: 'admin.tdPointsRules.get',
  347. },
  348. change: {
  349. url: `${prefix}/tdPointsRules/change`,
  350. method: 'PUT',
  351. action: 'admin.tdPointsRules.change.put',
  352. },
  353. taGoods: {
  354. url: `${prefix}/taGoods/:id`,
  355. method: 'GET',
  356. action: 'admin.taGoods.id.get',
  357. },
  358. updateTaGoods: {
  359. url: `${prefix}/taGoods`,
  360. method: 'PUT',
  361. action: 'admin.taGoods.put',
  362. },
  363. addTaGoods: {
  364. url: `${prefix}/taGoods/add`,
  365. method: 'POST',
  366. action: 'admin.taGoods.add.post',
  367. },
  368. taPointsExchange: {
  369. url: `${prefix}/taPointsExchange`,
  370. method: 'GET',
  371. action: 'admin.taPointsExchange.get',
  372. },
  373. getTaGoods: {
  374. url: `${prefix}/taGoods`,
  375. method: 'GET',
  376. action: 'admin.taGoods.get',
  377. },
  378. changeTaGoods: {
  379. url: `${prefix}/taGoods/change`,
  380. method: 'PUT',
  381. action: 'admin.taGoods.change.put',
  382. },
  383. changeTaPointsExchange: {
  384. url: `${prefix}/taPointsExchange/change`,
  385. method: 'PUT',
  386. action: 'admin.taPointsExchange.change.put',
  387. },
  388. },
  389. carsuseFigure: {
  390. extendContent: {
  391. url: `${prefix}/extendContent`,
  392. method: 'GET',
  393. action: 'admin.extendContent.get',
  394. },
  395. finish: {
  396. url: `${prefix}/buildingDynamic/finish`,
  397. method: 'PUT',
  398. action: 'admin.buildingDynamic.finish.put',
  399. },
  400. updataExtendContent: {
  401. url: `${prefix}/extendContent/:id`,
  402. method: 'PUT',
  403. action: 'admin.extendContent.id.put',
  404. },
  405. getExtendContent: {
  406. url: `${prefix}/extendContent/:id`,
  407. method: 'GET',
  408. action: 'admin.extendContent.id.get',
  409. },
  410. addExtendContent: {
  411. url: `${prefix}/extendContent`,
  412. method: 'POST',
  413. action: 'admin.extendContent.post',
  414. },
  415. },
  416. system: {
  417. taPolicy: {
  418. url: `${prefix}/taPolicy/:id`,
  419. method: 'GET',
  420. action: 'admin.taPolicy.id.get',
  421. },
  422. updateTaPolicy: {
  423. url: `${prefix}/taPolicy/:id`,
  424. method: 'PUT',
  425. action: 'admin.taPolicy.id.put',
  426. },
  427. addTaPolicy: {
  428. url: `${prefix}/taPolicy`,
  429. method: 'POST',
  430. action: 'admin.taPolicy.post',
  431. },
  432. getTaPolicy: {
  433. url: `${prefix}/taPolicy`,
  434. method: 'GET',
  435. action: 'admin.taPolicy.get',
  436. },
  437. deleteTaPolicy: {
  438. url: `${prefix}/taPolicy/:id`,
  439. method: 'DELETE',
  440. action: 'admin.taPolicy.id.delete',
  441. },
  442. tdBizEventIntention: {
  443. url: `${prefix}/tdBizEventIntention`,
  444. method: 'GET',
  445. action: 'admin.tdBizEventIntention.get',
  446. },
  447. taBuildingIntentionAddOrUpdate: {
  448. url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
  449. method: 'POST',
  450. action: 'admin.taBuildingIntentionAddOrUpdate.buildingId.post',
  451. },
  452. taCustomerMessage: {
  453. url: `${prefix}/taCustomerMessage`,
  454. method: 'GET',
  455. action: 'admin.taCustomerMessage.get',
  456. },
  457. tdReports: {
  458. url: `${prefix}/tdReports`,
  459. method: 'GET',
  460. action: 'admin.tdReports.get',
  461. },
  462. taBuildingReports: {
  463. url: `${prefix}/taBuildingReports`,
  464. method: 'GET',
  465. action: 'admin.taBuildingReports.get',
  466. },
  467. addTaBuildingReports: {
  468. url: `${prefix}/taBuildingReport/add`,
  469. method: 'POST',
  470. action: 'admin.taBuildingReport.add.post',
  471. },
  472. },
  473. staff: {
  474. taUser: {
  475. url: `${prefix}/taUser`,
  476. method: 'GET',
  477. action: 'admin.taUser.get',
  478. },
  479. taTags: {
  480. url: `${prefix}/taTags`,
  481. method: 'GET',
  482. action: 'admin.taTags.get',
  483. },
  484. getTaUser: {
  485. url: `${prefix}/taUser/:id`,
  486. method: 'GET',
  487. action: 'admin.taUser.id.get',
  488. },
  489. updateTaUser: {
  490. url: `${prefix}/taUser/:id`,
  491. method: 'PUT',
  492. action: 'admin.taUser.id.put',
  493. },
  494. addTaUser: {
  495. url: `${prefix}/taUser`,
  496. method: 'POST',
  497. action: 'admin.taUser.post',
  498. },
  499. change: {
  500. url: `${prefix}/turn/taUser/:id/:type`,
  501. method: 'PUT',
  502. action: 'admin.turn.taUser.put',
  503. },
  504. },
  505. channelList: {
  506. getList: {
  507. url: `${prefix}/channel`,
  508. method: 'GET',
  509. action: 'admin.channel.get',
  510. },
  511. addChannel: {
  512. url: `${prefix}/channel`,
  513. method: 'POST',
  514. action: 'admin.channel.post',
  515. },
  516. getById: {
  517. url: `${prefix}/channel/:id`,
  518. method: 'GET',
  519. action: 'admin.channel.id.get',
  520. },
  521. editChannel: {
  522. url: `${prefix}/channel/:id`,
  523. method: 'PUT',
  524. action: 'admin.channel.id.put',
  525. },
  526. getListBroker: {
  527. url: `${prefix}/channel/broker`,
  528. method: 'GET',
  529. action: 'admin.channel.broker.get',
  530. },
  531. getListRecommend: {
  532. url: `${prefix}/customer/recommend/:id`,
  533. method: 'GET',
  534. action: 'admin.customer.recommend.id.get',
  535. },
  536. getListInvite: {
  537. url: `${prefix}/channel/InviteClientsList`,
  538. method: 'GET',
  539. action: 'admin.InviteClientsList.get',
  540. },
  541. },
  542. role: {
  543. getRoleList: {
  544. url: `${prefix}/taRole`,
  545. method: 'GET',
  546. action: 'admin.taRole.get',
  547. },
  548. stop: {
  549. url: `${prefix}/taRole/stop/:id`,
  550. method: 'PUT',
  551. action: 'admin.taRole.stop.id.PUT',
  552. },
  553. menuList: {
  554. url: `${prefix}/menuList`,
  555. method: 'GET',
  556. action: 'admin.menuList.get',
  557. },
  558. buttonList: {
  559. url: `${prefix}/buttonList`,
  560. method: 'GET',
  561. action: 'admin.buttonList.get',
  562. },
  563. buttonAndMenuList: {
  564. url: `${prefix}/taRole/details/:id`,
  565. method: 'GET',
  566. action: 'admin.taRole.details.id.get'
  567. },
  568. updateAuthMenu: {
  569. url: `${prefix}/updateAuthMenu`,
  570. method: 'POST',
  571. action: 'admin.updateAuthMenu.post',
  572. },
  573. },
  574. }