知与行后台管理端

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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. },
  249. indexEcharts: {
  250. userResource: {
  251. method: 'GET',
  252. url: `${prefix}/selectUserResource`,
  253. action: 'userStatistics',
  254. },
  255. userBehavior: {
  256. summary: {
  257. method: 'GET',
  258. url: `${prefix}/selectUserBehavior`,
  259. action: 'userBehaviorStatistics',
  260. },
  261. profile: {
  262. method: 'GET',
  263. url: `${prefix}/selectEventAll`,
  264. action: 'behaviorIncident',
  265. },
  266. },
  267. userActive: {
  268. method: 'GET',
  269. url: `${prefix}/selectActiveUserCount`,
  270. action: 'selectActiveUserCount',
  271. },
  272. userSex: {
  273. method: 'GET',
  274. url: `${prefix}/selectSexUser`,
  275. action: 'selectSexUser',
  276. },
  277. newUser: {
  278. method: 'GET',
  279. url: `${prefix}/selectNewsUserCount`,
  280. action: 'selectNewsUserCount',
  281. },
  282. userConversion: {
  283. method: 'GET',
  284. url: `${prefix}/selectConversion`,
  285. action: 'selectConversion',
  286. },
  287. intentionUsers: {
  288. method: 'GET',
  289. url: `${prefix}/selectIntentionUser`,
  290. action: 'selectIntentionUser',
  291. },
  292. userCity: {
  293. method: 'get',
  294. url: `${prefix}/selectCityUser`,
  295. action: 'admin.selectCityUser.get',
  296. },
  297. },
  298. activity: {
  299. list: {
  300. method: 'GET',
  301. url: `${prefix}/iBuildingDynamicList`,
  302. action: 'admin.iBuildingDynamicList.get',
  303. },
  304. weight: {
  305. method: 'PUT',
  306. url: `${prefix}/buildingDynamic/weight`,
  307. action: 'admin.buildingDynamic.weight.put',
  308. },
  309. cancel: {
  310. method: 'PUT',
  311. url: `${prefix}/buildingDynamic/cancel/:id`,
  312. action: 'admin.buildingDynamic.cancel.dynamicId.put',
  313. },
  314. send: {
  315. url: `${prefix}/buildingDynamic/send/:id`,
  316. method: 'PUT',
  317. action: 'admin.buildingDynamic.send.dynamicId.put',
  318. },
  319. finish: {
  320. url: `${prefix}/buildingDynamic/finish`,
  321. method: 'PUT',
  322. action: 'admin.buildingDynamic.finish.put',
  323. },
  324. details: {
  325. url: `${prefix}/buildingDynamic/Details`,
  326. method: 'GET',
  327. action: 'admin.buildingDynamic.Details.get',
  328. },
  329. update: {
  330. url: `${prefix}/buildingDynamic/update`,
  331. method: 'PUT',
  332. action: 'admin.buildingDynamic.update.put',
  333. },
  334. add: {
  335. url: `${prefix}/buildingDynamic/add`,
  336. method: 'POST',
  337. action: 'admin.buildingDynamic.add.post',
  338. },
  339. poster: {
  340. url: `${prefix}/poster`,
  341. method: 'GET',
  342. action: 'admin.poster.get',
  343. },
  344. updatePoster: {
  345. url: `${prefix}/poster/:id`,
  346. method: 'PUT',
  347. action: 'admin.poster.id.put',
  348. },
  349. addPoster: {
  350. url: `${prefix}/poster`,
  351. method: 'POST',
  352. action: 'admin.poster.post',
  353. },
  354. shareContent: {
  355. url: `${prefix}/shareContent`,
  356. method: 'GET',
  357. action: 'admin.shareContent.get',
  358. },
  359. updateShareContent: {
  360. url: `${prefix}/shareContent/:id`,
  361. method: 'PUT',
  362. action: 'admin.shareContent.id.put',
  363. },
  364. addShareContent: {
  365. url: `${prefix}/shareContent`,
  366. method: 'POST',
  367. action: 'admin.shareContent.post',
  368. },
  369. signList: {
  370. url: `${prefix}/SignList`,
  371. method: 'GET',
  372. action: 'admin.SignList.get',
  373. }
  374. },
  375. integralMall: {
  376. tdPointsRules: {
  377. url: `${prefix}/tdPointsRules`,
  378. method: 'GET',
  379. action: 'admin.tdPointsRules.get',
  380. },
  381. change: {
  382. url: `${prefix}/tdPointsRules/change`,
  383. method: 'PUT',
  384. action: 'admin.tdPointsRules.change.put',
  385. },
  386. taGoods: {
  387. url: `${prefix}/taGoods/:id`,
  388. method: 'GET',
  389. action: 'admin.taGoods.id.get',
  390. },
  391. updateTaGoods: {
  392. url: `${prefix}/taGoods`,
  393. method: 'PUT',
  394. action: 'admin.taGoods.put',
  395. },
  396. addTaGoods: {
  397. url: `${prefix}/taGoods/add`,
  398. method: 'POST',
  399. action: 'admin.taGoods.add.post',
  400. },
  401. taPointsExchange: {
  402. url: `${prefix}/taPointsExchange`,
  403. method: 'GET',
  404. action: 'admin.taPointsExchange.get',
  405. },
  406. getTaGoods: {
  407. url: `${prefix}/taGoods`,
  408. method: 'GET',
  409. action: 'admin.taGoods.get',
  410. },
  411. changeTaGoods: {
  412. url: `${prefix}/taGoods/change`,
  413. method: 'PUT',
  414. action: 'admin.taGoods.change.put',
  415. },
  416. changeTaPointsExchange: {
  417. url: `${prefix}/taPointsExchange/change`,
  418. method: 'PUT',
  419. action: 'admin.taPointsExchange.change.put',
  420. },
  421. },
  422. carsuseFigure: {
  423. extendContent: {
  424. url: `${prefix}/extendContent`,
  425. method: 'GET',
  426. action: 'admin.extendContent.get',
  427. },
  428. finish: {
  429. url: `${prefix}/buildingDynamic/finish`,
  430. method: 'PUT',
  431. action: 'admin.buildingDynamic.finish.put',
  432. },
  433. updataExtendContent: {
  434. url: `${prefix}/extendContent/:id`,
  435. method: 'PUT',
  436. action: 'admin.extendContent.id.put',
  437. },
  438. getExtendContent: {
  439. url: `${prefix}/extendContent/:id`,
  440. method: 'GET',
  441. action: 'admin.extendContent.id.get',
  442. },
  443. addExtendContent: {
  444. url: `${prefix}/extendContent`,
  445. method: 'POST',
  446. action: 'admin.extendContent.post',
  447. },
  448. },
  449. system: {
  450. taPolicy: {
  451. url: `${prefix}/taPolicy/:id`,
  452. method: 'GET',
  453. action: 'admin.taPolicy.id.get',
  454. },
  455. updateTaPolicy: {
  456. url: `${prefix}/taPolicy/:id`,
  457. method: 'PUT',
  458. action: 'admin.taPolicy.id.put',
  459. },
  460. addTaPolicy: {
  461. url: `${prefix}/taPolicy`,
  462. method: 'POST',
  463. action: 'admin.taPolicy.post',
  464. },
  465. getTaPolicy: {
  466. url: `${prefix}/taPolicy`,
  467. method: 'GET',
  468. action: 'admin.taPolicy.get',
  469. },
  470. deleteTaPolicy: {
  471. url: `${prefix}/taPolicy/:id`,
  472. method: 'DELETE',
  473. action: 'admin.taPolicy.id.delete',
  474. },
  475. tdBizEventIntention: {
  476. url: `${prefix}/tdBizEventIntention`,
  477. method: 'GET',
  478. action: 'admin.tdBizEventIntention.get',
  479. },
  480. taBuildingIntentionAddOrUpdate: {
  481. url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
  482. method: 'POST',
  483. action: 'admin.taBuildingIntentionAddOrUpdate.buildingId.post',
  484. },
  485. taCustomerMessage: {
  486. url: `${prefix}/taCustomerMessage`,
  487. method: 'GET',
  488. action: 'admin.taCustomerMessage.get',
  489. },
  490. tdReports: {
  491. url: `${prefix}/tdReports`,
  492. method: 'GET',
  493. action: 'admin.tdReports.get',
  494. },
  495. taBuildingReports: {
  496. url: `${prefix}/taBuildingReports`,
  497. method: 'GET',
  498. action: 'admin.taBuildingReports.get',
  499. },
  500. addTaBuildingReports: {
  501. url: `${prefix}/taBuildingReport/add`,
  502. method: 'POST',
  503. action: 'admin.taBuildingReport.add.post',
  504. },
  505. },
  506. staff: {
  507. taUser: {
  508. url: `${prefix}/taUser`,
  509. method: 'GET',
  510. action: 'admin.taUser.get',
  511. },
  512. taTags: {
  513. url: `${prefix}/taTags`,
  514. method: 'GET',
  515. action: 'admin.taTags.get',
  516. },
  517. getTaUser: {
  518. url: `${prefix}/taUser/:id`,
  519. method: 'GET',
  520. action: 'admin.taUser.id.get',
  521. },
  522. updateTaUser: {
  523. url: `${prefix}/taUser/:id`,
  524. method: 'PUT',
  525. action: 'admin.taUser.id.put',
  526. },
  527. addTaUser: {
  528. url: `${prefix}/taUser`,
  529. method: 'POST',
  530. action: 'admin.taUser.post',
  531. },
  532. change: {
  533. url: `${prefix}/turn/taUser/:id/:type`,
  534. method: 'PUT',
  535. action: 'admin.turn.taUser.put',
  536. },
  537. },
  538. channelList: {
  539. getList: {
  540. url: `${prefix}/channel`,
  541. method: 'GET',
  542. action: 'admin.channel.get',
  543. },
  544. addChannel: {
  545. url: `${prefix}/channel`,
  546. method: 'POST',
  547. action: 'admin.channel.post',
  548. },
  549. getById: {
  550. url: `${prefix}/channel/:id`,
  551. method: 'GET',
  552. action: 'admin.channel.id.get',
  553. },
  554. editChannel: {
  555. url: `${prefix}/channel/:id`,
  556. method: 'PUT',
  557. action: 'admin.channel.id.put',
  558. },
  559. getListBroker: {
  560. url: `${prefix}/channel/broker`,
  561. method: 'GET',
  562. action: 'admin.channel.broker.get',
  563. },
  564. getListRecommend: {
  565. url: `${prefix}/customer/recommend/:id`,
  566. method: 'GET',
  567. action: 'admin.customer.recommend.id.get',
  568. },
  569. getListInvite: {
  570. url: `${prefix}/channel/InviteClientsList`,
  571. method: 'GET',
  572. action: 'admin.InviteClientsList.get',
  573. },
  574. },
  575. role: {
  576. getRoleList: {
  577. url: `${prefix}/taRole`,
  578. method: 'GET',
  579. action: 'admin.taRole.get',
  580. },
  581. stop: {
  582. url: `${prefix}/taRole/stop/:id`,
  583. method: 'PUT',
  584. action: 'admin.taRole.stop.id.PUT',
  585. },
  586. menuList: {
  587. url: `${prefix}/menuList`,
  588. method: 'GET',
  589. action: 'admin.menuList.get',
  590. },
  591. buttonList: {
  592. url: `${prefix}/buttonList`,
  593. method: 'GET',
  594. action: 'admin.buttonList.get',
  595. },
  596. buttonAndMenuList: {
  597. url: `${prefix}/taRole/details/:id`,
  598. method: 'GET',
  599. action: 'admin.taRole.details.id.get'
  600. },
  601. updateAuthMenu: {
  602. url: `${prefix}/updateAuthMenu`,
  603. method: 'POST',
  604. action: 'admin.updateAuthMenu.post',
  605. },
  606. },
  607. }