知与行后台管理端

apis.js 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. const prefix = '/api/admin'
  2. export default {
  3. image: {
  4. uploadForAnt: {
  5. url: `${prefix}/antd/image`,
  6. method: 'POST',
  7. action: 'upload',
  8. },
  9. upload: {
  10. url: `${prefix}/image`,
  11. method: 'POST',
  12. action: 'upload',
  13. },
  14. },
  15. user: {
  16. updatePassword: {
  17. method: 'PUT',
  18. url: `${prefix}/update/password`,
  19. action: 'admin.update.password',
  20. },
  21. current: {
  22. method: 'GET',
  23. url: `${prefix}/taUser/current`,
  24. action: 'admin.taUser.current.get',
  25. },
  26. signin: {
  27. method: 'POST',
  28. url: `${prefix}/taUser/signin`,
  29. login: true,
  30. action: 'admin.taUser.signin.post',
  31. },
  32. signout: {
  33. method: 'POST',
  34. url: `${prefix}/taUser/signout`,
  35. logout: true,
  36. action: 'signout',
  37. },
  38. },
  39. building: {
  40. getList: {
  41. method: 'GET',
  42. url: `${prefix}/buildinglist`,
  43. action: 'admin.buildinglist.get',
  44. },
  45. updateStatus: {
  46. method: 'PUT',
  47. url: `${prefix}/building/update/status`,
  48. action: 'admin.building.update.status.put',
  49. },
  50. addBuilding: {
  51. method: 'POST',
  52. url: `${prefix}/building/add`,
  53. action: 'admin.building.add.post',
  54. },
  55. updateBuilding: {
  56. method: 'PUT',
  57. url: `${prefix}/building/update`,
  58. action: 'admin.building.update.put',
  59. },
  60. buildingGetById: {
  61. method: 'GET',
  62. url: `${prefix}/buildingSelectId/:id`,
  63. action: 'admin.buildingSelectId.id.get',
  64. },
  65. deleteBuilding: {
  66. method: 'DELETE',
  67. url: `${prefix}/building/delete/:id`,
  68. action: 'admin.building.delete.id.delete',
  69. },
  70. buildingApartment: {
  71. method: 'GET',
  72. url: `${prefix}/buildingApartment/buildingId/:id`,
  73. action: 'admin.buildingApartment.buildingId.id.get',
  74. },
  75. buildingApartmentGetById: {
  76. method: 'GET',
  77. url: `${prefix}/buildingApartment/:id`,
  78. action: 'admin.buildingApartment.id.get',
  79. },
  80. buildingApartmentUpdate: {
  81. method: 'PUT',
  82. url: `${prefix}/buildingApartment/update`,
  83. action: 'admin.buildingApartment.update.put',
  84. },
  85. buildingApartmentAdd: {
  86. method: 'POST',
  87. url: `${prefix}/buildingApartment/add`,
  88. action: 'admin.buildingApartment.add.post',
  89. },
  90. buildingApartmentDelete: {
  91. method: 'DELETE',
  92. url: `${prefix}/apartment/deleted/:id`,
  93. action: 'admin.apartment.deleted.id.delete',
  94. },
  95. buildingSelect: {
  96. url: `${prefix}/buildinglist/select`,
  97. method: 'GET',
  98. action: 'select',
  99. },
  100. getMiniappName: {
  101. url: `${prefix}/getMiniappName`,
  102. method: 'GET',
  103. action: 'select',
  104. },
  105. },
  106. buildingType: {
  107. getList: {
  108. method: 'GET',
  109. url: `${prefix}/tdBuildingType`,
  110. action: 'admin.tdBuildingType.get',
  111. },
  112. delete: {
  113. method: 'DELETE',
  114. url: `${prefix}/tdBuildingType/:id`,
  115. action: 'admin.tdBuildingType.id.delete',
  116. },
  117. update: {
  118. method: 'PUT',
  119. url: `${prefix}/tdBuildingType/:id`,
  120. action: 'admin.tdBuildingType.id.put',
  121. },
  122. add: {
  123. method: 'POST',
  124. url: `${prefix}/tdBuildingType`,
  125. action: 'admin.tdBuildingType.post',
  126. },
  127. getById: {
  128. method: 'GET',
  129. url: `${prefix}/tdBuildingType/:id`,
  130. action: 'admin.tdBuildingType.id.get',
  131. },
  132. },
  133. news: {
  134. getList: {
  135. method: 'GET',
  136. url: `${prefix}/taNews`,
  137. action: 'admin.taNews.get',
  138. },
  139. delete: {
  140. method: 'DELETE',
  141. url: `${prefix}/taNews/:id`,
  142. action: 'admin.taNews.id.delete',
  143. },
  144. cancel: {
  145. method: 'PUT',
  146. url: `${prefix}/taNews/:id`,
  147. action: 'admin.taNews.id.put',
  148. },
  149. get: {
  150. method: 'GET',
  151. url: `${prefix}/taNews/:id`,
  152. action: 'admin.taNews.id.get',
  153. },
  154. post: {
  155. method: 'POST',
  156. url: `${prefix}/taNews`,
  157. action: 'admin.taNews.post',
  158. },
  159. put: {
  160. method: 'PUT',
  161. url: `${prefix}/taNews/:id`,
  162. action: 'admin.taNews.id.put',
  163. },
  164. weight: {
  165. method: 'PUT',
  166. url: `${prefix}/taNews/weight`,
  167. action: 'admin.taNews.weight.put',
  168. }
  169. },
  170. newsType: {
  171. list: {
  172. method: 'GET',
  173. url: `${prefix}/taNewsType`,
  174. action: 'admin.taNewsType.get',
  175. },
  176. delete: {
  177. method: 'DELETE',
  178. url: `${prefix}/taNewsType/:id`,
  179. action: 'admin.taNewsType.id.delete',
  180. },
  181. put: {
  182. method: 'PUT',
  183. url: `${prefix}/taNewsType/:id`,
  184. action: 'admin.taNewsType.id.delete',
  185. },
  186. post: {
  187. method: 'POST',
  188. url: `${prefix}/taNewsType`,
  189. action: 'admin.taNewsType.post',
  190. },
  191. get: {
  192. method: 'GET',
  193. url: `${prefix}/taNewsType/:id`,
  194. action: 'admin.taNewsType.get',
  195. }
  196. },
  197. customer: {
  198. drift: {
  199. method: 'GET',
  200. url: `${prefix}/customer/recommend/drift`,
  201. action: 'admin.customer.recommend.drift.get',
  202. },
  203. report: {
  204. method: 'GET',
  205. url: `${prefix}/customer/recommend/report`,
  206. action: 'admin.customer.recommend.report.get',
  207. },
  208. recommender: {
  209. method: 'GET',
  210. url: `${prefix}/customer/recommend/recommender`,
  211. action: 'admin.customer.recommend.recommender.get',
  212. },
  213. auto: {
  214. method: 'PUT',
  215. url: `${prefix}/customer/recommend/verify/:id`,
  216. action: 'admin.customer.recommend.verify.id.put',
  217. },
  218. recommendGetById: {
  219. method: 'GET',
  220. url: `${prefix}/customer/recommend/getById/:id`,
  221. action: 'admin.customer.recommend.getById.id.get',
  222. },
  223. agents: {
  224. method: 'GET',
  225. url: `${prefix}/customer/agents`,
  226. action: 'admin.customer.agents.get',
  227. },
  228. customerRecommend: {
  229. method: 'GET',
  230. url: `${prefix}/customer/recommend`,
  231. action: 'admin.customer.recommend.get',
  232. },
  233. consultant: {
  234. method: 'GET',
  235. url: `${prefix}/consultant`,
  236. action: 'admin.consultant.get',
  237. },
  238. recommendEdit: {
  239. method: 'PUT',
  240. url: `${prefix}/customer/recommend/edit/:id`,
  241. action: 'admin.customer.recommend.edit.id.put',
  242. },
  243. taPointsRecords: {
  244. method: 'GET',
  245. url: `${prefix}/mine/taPointsRecords/:id`,
  246. action: 'admin.mine.taPointsRecords.id.get',
  247. },
  248. recommend: {
  249. method: 'GET',
  250. url: `${prefix}/customer/recommend/:id`,
  251. action: 'admin.customer.recommend.id.get',
  252. },
  253. InviteClientsList: {
  254. method: 'GET',
  255. url: `${prefix}/channel/InviteClientsList`,
  256. action: 'admin.channel.InviteClientsList.get',
  257. },
  258. CustomerRecommendGet: {
  259. method: 'GET',
  260. url: `${prefix}/customer/recommend/get/:id`,
  261. action: 'admin.customer.recommend.get.id.get',
  262. },
  263. customerRecommendRecommenderExport: { // 导出数据(推荐客户)
  264. method: 'GET',
  265. url: `${prefix}/customer/recommend/recommender/export`,
  266. action: 'admin.customer.recommend.recommender.export.get',
  267. },
  268. customerRecommendReportExport: { // 导出数据(报备客户)
  269. method: 'GET',
  270. url: `${prefix}/customer/recommend/report/export`,
  271. action: 'admin.customer.recommend.report.export.get',
  272. },
  273. customerRecommendAgentsExport: { // 导出数据(经纪人)
  274. method: 'GET',
  275. url: `${prefix}/customer/recommend/agents/export`,
  276. action: 'admin.customer.recommend.agents.export.get',
  277. },
  278. customerRecommendExport: { // 导出数据(客户列表)
  279. method: 'GET',
  280. url: `${prefix}/customer/recommend/export`,
  281. action: 'admin.customer.recommend.export.get',
  282. },
  283. },
  284. indexEcharts: {
  285. list:{
  286. method:'GET',
  287. url: `${prefix}/indexStatistical`,
  288. action: 'userStatistics',
  289. },
  290. userResource: {
  291. method: 'GET',
  292. url: `${prefix}/selectUserResource`,
  293. action: 'userStatistics',
  294. },
  295. list:{
  296. method:'Get',
  297. url: `${prefix}/indexStatistical`,
  298. action:'select',
  299. },
  300. userBehavior: {
  301. summary: {
  302. method: 'GET',
  303. url: `${prefix}/selectUserBehavior`,
  304. action: 'userBehaviorStatistics',
  305. },
  306. profile: {
  307. method: 'GET',
  308. url: `${prefix}/selectEventAll`,
  309. action: 'behaviorIncident',
  310. },
  311. },
  312. bizEvent: {
  313. dict: {
  314. method:'get',
  315. url: `${prefix}/tdBizEventType`,
  316. action:'select',
  317. },
  318. list: {
  319. method:'get',
  320. url: `${prefix}/tdBizEvent`,
  321. action:'select',
  322. },
  323. properties: {
  324. method:'get',
  325. url: `${prefix}/taEventProperties`,
  326. action:'select',
  327. },
  328. },
  329. userActive: {
  330. method: 'GET',
  331. url: `${prefix}/selectActiveUserCount`,
  332. action: 'selectActiveUserCount',
  333. },
  334. userSex: {
  335. method: 'GET',
  336. url: `${prefix}/selectSexUser`,
  337. action: 'selectSexUser',
  338. },
  339. newUser: {
  340. method: 'GET',
  341. url: `${prefix}/selectNewsUserCount`,
  342. action: 'selectNewsUserCount',
  343. },
  344. userConversion: {
  345. method: 'GET',
  346. url: `${prefix}/selectConversion`,
  347. action: 'selectConversion',
  348. },
  349. intentionUsers: {
  350. method: 'GET',
  351. url: `${prefix}/selectIntentionUser`,
  352. action: 'selectIntentionUser',
  353. },
  354. userCity: {
  355. method: 'get',
  356. url: `${prefix}/selectCityUser`,
  357. action: 'admin.selectCityUser.get',
  358. },
  359. },
  360. activity: {
  361. list: {
  362. method: 'GET',
  363. url: `${prefix}/iBuildingDynamicList`,
  364. action: 'admin.iBuildingDynamicList.get',
  365. },
  366. weight: {
  367. method: 'PUT',
  368. url: `${prefix}/buildingDynamic/weight`,
  369. action: 'admin.buildingDynamic.weight.put',
  370. },
  371. cancel: {
  372. method: 'PUT',
  373. url: `${prefix}/buildingDynamic/cancel/:id`,
  374. action: 'admin.buildingDynamic.cancel.dynamicId.put',
  375. },
  376. send: {
  377. url: `${prefix}/buildingDynamic/send/:id`,
  378. method: 'PUT',
  379. action: 'admin.buildingDynamic.send.dynamicId.put',
  380. },
  381. finish: {
  382. url: `${prefix}/buildingDynamic/finish`,
  383. method: 'PUT',
  384. action: 'admin.buildingDynamic.finish.put',
  385. },
  386. details: {
  387. url: `${prefix}/buildingDynamic/Details`,
  388. method: 'GET',
  389. action: 'admin.buildingDynamic.Details.get',
  390. },
  391. update: {
  392. url: `${prefix}/buildingDynamic/update`,
  393. method: 'PUT',
  394. action: 'admin.buildingDynamic.update.put',
  395. },
  396. add: {
  397. url: `${prefix}/buildingDynamic/add`,
  398. method: 'POST',
  399. action: 'admin.buildingDynamic.add.post',
  400. },
  401. poster: {
  402. url: `${prefix}/poster`,
  403. method: 'GET',
  404. action: 'admin.poster.get',
  405. },
  406. updatePoster: {
  407. url: `${prefix}/poster/:id`,
  408. method: 'PUT',
  409. action: 'admin.poster.id.put',
  410. },
  411. addPoster: {
  412. url: `${prefix}/poster`,
  413. method: 'POST',
  414. action: 'admin.poster.post',
  415. },
  416. shareContent: {
  417. url: `${prefix}/shareContent`,
  418. method: 'GET',
  419. action: 'admin.shareContent.get',
  420. },
  421. updateShareContent: {
  422. url: `${prefix}/shareContent/:id`,
  423. method: 'PUT',
  424. action: 'admin.shareContent.id.put',
  425. },
  426. addShareContent: {
  427. url: `${prefix}/shareContent`,
  428. method: 'POST',
  429. action: 'admin.shareContent.post',
  430. },
  431. signList: {
  432. url: `${prefix}/SignList`,
  433. method: 'GET',
  434. action: 'admin.SignList.get',
  435. }
  436. },
  437. integralMall: {
  438. tdPointsRules: {
  439. url: `${prefix}/tdPointsRules`,
  440. method: 'GET',
  441. action: 'admin.tdPointsRules.get',
  442. },
  443. rulesDetail: {
  444. url: `${prefix}/tdPointsRules/:id`,
  445. method: 'GET',
  446. action: 'admin.tdPointsRules.id.get',
  447. },
  448. rulesUpdate: {
  449. url: `${prefix}/tdPointsRules`,
  450. method: 'PUT',
  451. action: 'admin.tdPointsRules.put',
  452. },
  453. change: {
  454. url: `${prefix}/tdPointsRules/change`,
  455. method: 'PUT',
  456. action: 'admin.tdPointsRules.change.put',
  457. },
  458. taGoods: {
  459. url: `${prefix}/taGoods/:id`,
  460. method: 'GET',
  461. action: 'admin.taGoods.id.get',
  462. },
  463. updateTaGoods: {
  464. url: `${prefix}/taGoods`,
  465. method: 'PUT',
  466. action: 'admin.taGoods.put',
  467. },
  468. addTaGoods: {
  469. url: `${prefix}/taGoods/add`,
  470. method: 'POST',
  471. action: 'admin.taGoods.add.post',
  472. },
  473. taPointsExchange: {
  474. url: `${prefix}/taPointsExchange`,
  475. method: 'GET',
  476. action: 'admin.taPointsExchange.get',
  477. },
  478. getTaGoods: {
  479. url: `${prefix}/taGoods`,
  480. method: 'GET',
  481. action: 'admin.taGoods.get',
  482. },
  483. changeTaGoods: {
  484. url: `${prefix}/taGoods/change`,
  485. method: 'PUT',
  486. action: 'admin.taGoods.change.put',
  487. },
  488. changeTaPointsExchange: {
  489. url: `${prefix}/taPointsExchange/change`,
  490. method: 'PUT',
  491. action: 'admin.taPointsExchange.change.put',
  492. },
  493. },
  494. carsuseFigure: {
  495. extendContent: {
  496. url: `${prefix}/extendContent`,
  497. method: 'GET',
  498. action: 'admin.extendContent.get',
  499. },
  500. finish: {
  501. url: `${prefix}/buildingDynamic/finish`,
  502. method: 'PUT',
  503. action: 'admin.buildingDynamic.finish.put',
  504. },
  505. updataExtendContent: {
  506. url: `${prefix}/extendContent/:id`,
  507. method: 'PUT',
  508. action: 'admin.extendContent.id.put',
  509. },
  510. getExtendContent: {
  511. url: `${prefix}/extendContent/:id`,
  512. method: 'GET',
  513. action: 'admin.extendContent.id.get',
  514. },
  515. addExtendContent: {
  516. url: `${prefix}/extendContent`,
  517. method: 'POST',
  518. action: 'admin.extendContent.post',
  519. },
  520. },
  521. system: {
  522. taPolicy: {
  523. url: `${prefix}/taPolicy/:id`,
  524. method: 'GET',
  525. action: 'admin.taPolicy.id.get',
  526. },
  527. updateTaPolicy: {
  528. url: `${prefix}/taPolicy/:id`,
  529. method: 'PUT',
  530. action: 'admin.taPolicy.id.put',
  531. },
  532. addTaPolicy: {
  533. url: `${prefix}/taPolicy`,
  534. method: 'POST',
  535. action: 'admin.taPolicy.post',
  536. },
  537. getTaPolicy: {
  538. url: `${prefix}/taPolicy`,
  539. method: 'GET',
  540. action: 'admin.taPolicy.get',
  541. },
  542. deleteTaPolicy: {
  543. url: `${prefix}/taPolicy/:id`,
  544. method: 'DELETE',
  545. action: 'admin.taPolicy.id.delete',
  546. },
  547. tdBizEventIntention: {
  548. url: `${prefix}/tdBizEventIntention`,
  549. method: 'GET',
  550. action: 'admin.tdBizEventIntention.get',
  551. },
  552. taBuildingIntentionAddOrUpdate: {
  553. url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
  554. method: 'POST',
  555. action: 'admin.taBuildingIntentionAddOrUpdate.buildingId.post',
  556. },
  557. taCustomerMessage: {
  558. url: `${prefix}/taCustomerMessage`,
  559. method: 'GET',
  560. action: 'admin.taCustomerMessage.get',
  561. },
  562. tdReports: {
  563. url: `${prefix}/tdReports`,
  564. method: 'GET',
  565. action: 'admin.tdReports.get',
  566. },
  567. taBuildingReports: {
  568. url: `${prefix}/taBuildingReports`,
  569. method: 'GET',
  570. action: 'admin.taBuildingReports.get',
  571. },
  572. addTaBuildingReports: {
  573. url: `${prefix}/taBuildingReport/add`,
  574. method: 'POST',
  575. action: 'admin.taBuildingReport.add.post',
  576. },
  577. },
  578. staff: {
  579. taUser: {
  580. url: `${prefix}/taUser`,
  581. method: 'GET',
  582. action: 'admin.taUser.get',
  583. },
  584. taTags: {
  585. url: `${prefix}/taTags`,
  586. method: 'GET',
  587. action: 'admin.taTags.get',
  588. },
  589. getTaUser: {
  590. url: `${prefix}/taUser/:id`,
  591. method: 'GET',
  592. action: 'admin.taUser.id.get',
  593. },
  594. updateTaUser: {
  595. url: `${prefix}/taUser/:id`,
  596. method: 'PUT',
  597. action: 'admin.taUser.id.put',
  598. },
  599. addTaUser: {
  600. url: `${prefix}/taUser`,
  601. method: 'POST',
  602. action: 'admin.taUser.post',
  603. },
  604. change: {
  605. url: `${prefix}/turn/taUser/:id/:type`,
  606. method: 'PUT',
  607. action: 'admin.turn.taUser.put',
  608. },
  609. },
  610. channelList: {
  611. getList: {
  612. url: `${prefix}/channel`,
  613. method: 'GET',
  614. action: 'admin.channel.get',
  615. },
  616. addChannel: {
  617. url: `${prefix}/channel`,
  618. method: 'POST',
  619. action: 'admin.channel.post',
  620. },
  621. getById: {
  622. url: `${prefix}/channel/:id`,
  623. method: 'GET',
  624. action: 'admin.channel.id.get',
  625. },
  626. editChannel: {
  627. url: `${prefix}/channel/:id`,
  628. method: 'PUT',
  629. action: 'admin.channel.id.put',
  630. },
  631. getListBroker: {
  632. url: `${prefix}/channel/broker`,
  633. method: 'GET',
  634. action: 'admin.channel.broker.get',
  635. },
  636. getListRecommend: {
  637. url: `${prefix}/customer/recommend/:id`,
  638. method: 'GET',
  639. action: 'admin.customer.recommend.id.get',
  640. },
  641. getListInvite: {
  642. url: `${prefix}/channel/InviteClientsList`,
  643. method: 'GET',
  644. action: 'admin.channel.InviteClientsList.get',
  645. },
  646. },
  647. role: {
  648. getRoleList: {
  649. url: `${prefix}/taRole`,
  650. method: 'GET',
  651. action: 'admin.taRole.get',
  652. },
  653. stop: {
  654. url: `${prefix}/taRole/stop/:id`,
  655. method: 'PUT',
  656. action: 'admin.taRole.stop.id.PUT',
  657. },
  658. menuList: {
  659. url: `${prefix}/menuList`,
  660. method: 'GET',
  661. action: 'admin.menuList.get',
  662. },
  663. buttonList: {
  664. url: `${prefix}/buttonList`,
  665. method: 'GET',
  666. action: 'admin.buttonList.get',
  667. },
  668. buttonAndMenuList: {
  669. url: `${prefix}/taRole/details/:id`,
  670. method: 'GET',
  671. action: 'admin.taRole.details.id.get'
  672. },
  673. updateAuthMenu: {
  674. url: `${prefix}/updateAuthMenu`,
  675. method: 'POST',
  676. action: 'admin.updateAuthMenu.post',
  677. },
  678. },
  679. third: {
  680. thirdPartyMiniapp: {
  681. url: `${prefix}/thirdPartyMiniapp`,
  682. method: 'GET',
  683. action: 'admin.thirdPartyMiniapp.get',
  684. },
  685. update: {
  686. url: `${prefix}/thirdPartyMiniapp/update`,
  687. method: 'PUT',
  688. action: 'admin.thirdPartyMiniapp.update.put',
  689. },
  690. add: {
  691. url: `${prefix}/thirdPartyMiniapp/add`,
  692. method: 'POST',
  693. action: 'admin.thirdPartyMiniapp.add.post',
  694. },
  695. details: {
  696. url: `${prefix}/thirdPartyMiniapp/:id`,
  697. method: 'GET',
  698. action: 'admin.thirdPartyMiniapp.id.get',
  699. }
  700. }
  701. }