知与行后台管理端

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