123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. // const baseUrl = '/api-v2'
  2. const baseUrl = '/api'
  3. const common = '/common/:org'
  4. const guest = '/guest/:org'
  5. const $api = {
  6. login: { // 登陆
  7. signin: {
  8. method: 'post',
  9. url: `${baseUrl}${guest}/signin`
  10. }
  11. },
  12. system: {
  13. init: { // 初始化菜单
  14. method: 'get',
  15. url: `${baseUrl}${common}/system/init`
  16. },
  17. signout: { // 登出
  18. method: 'post',
  19. url: `${baseUrl}${common}/signout`
  20. },
  21. editPassword: { // 修改密码
  22. method: 'put',
  23. url: `${baseUrl}${common}/user/:id/password`
  24. },
  25. },
  26. systemSet: {
  27. getUserList: { // 获取用户列表
  28. method: 'get',
  29. url: `${baseUrl}${common}/user`
  30. },
  31. getUserInfo: { // 获取用户信息
  32. method: 'get',
  33. url: `${baseUrl}${common}/user/:id`
  34. },
  35. addUser: { // 新增用户
  36. method: 'post',
  37. url: `${baseUrl}${common}/user`
  38. },
  39. editUser: { // 更新用户
  40. method: 'put',
  41. url: `${baseUrl}${common}/user`
  42. },
  43. deleteUser: { // 删除用户
  44. method: 'delete',
  45. url: `${baseUrl}${common}/user/:id`
  46. },
  47. resetPassword: { // 重置用户密码
  48. method: 'put',
  49. url: `${baseUrl}${common}/user/password/reset`
  50. },
  51. bindRoles: { // 绑定角色
  52. method: 'put',
  53. url: `${baseUrl}${common}/userrole`
  54. },
  55. getUserRoles: { // 获取用户绑定角色
  56. method: 'get',
  57. url: `${baseUrl}${common}/userrole`
  58. },
  59. getUserByTel: {
  60. method: 'get',
  61. url: `${baseUrl}${common}/user/tel/:tel`
  62. },
  63. },
  64. channelManager: {
  65. getChannelList: { // 渠道列表
  66. method: 'get',
  67. url: `${baseUrl}${common}/channel`
  68. },
  69. getChannelInfo: { // 获取渠道信息
  70. method: 'get',
  71. url: `${baseUrl}${common}/channel/:channelId`
  72. },
  73. addChannel: { // 新增渠道
  74. method: 'post',
  75. url: `${baseUrl}${common}/channel`
  76. },
  77. editChannel: { // 更新渠道
  78. method: 'put',
  79. url: `${baseUrl}${common}/channel`
  80. },
  81. deleteChannel: { // 删除渠道
  82. method: 'delete',
  83. url: `${baseUrl}${common}/channel/:channelId`
  84. },
  85. },
  86. caseManager: {
  87. getKeyListById: {
  88. method: 'get',
  89. url: `${baseUrl}${common}/case/key`
  90. },
  91. bindKeyByPhone: {
  92. method: 'post',
  93. url: `${baseUrl}${common}/case/key/:phone/:keyid`
  94. },
  95. bindKey: {
  96. method: 'post',
  97. url: `${baseUrl}${common}/case/key/:keyid/:customerid/:customername`
  98. },
  99. bindKeyByQrCode: {
  100. method: 'post',
  101. url: `${baseUrl}${common}/verify/case/key/:keyid/:customerid`
  102. },
  103. getRolesList: { // 获取角色列表
  104. method: 'get',
  105. url: `${baseUrl}${common}/role`
  106. },
  107. getCaseList: { // 获取案场列表
  108. method: 'get',
  109. url: `${baseUrl}${common}/case/info`
  110. },
  111. addCase: { // 新增案场
  112. method: 'post',
  113. url: `${baseUrl}${common}/case/info`
  114. },
  115. getCaseInfo: { // 查询案场
  116. method: 'get',
  117. url: `${baseUrl}${common}/case/info/:id`
  118. },
  119. editCase: { // 编辑案场
  120. method: 'put',
  121. url: `${baseUrl}${common}/case/info/:id`
  122. },
  123. getCaseUserType: { // 获取案场相关人员类型
  124. method: 'get',
  125. url: `${baseUrl}${common}/case/usertype`
  126. },
  127. getCaseUserList: { // 获取案场相关人员列表
  128. method: 'get',
  129. url: `${baseUrl}${common}/case/user`
  130. },
  131. getCaseUserInfo: { // 获取案场相关人员信息
  132. method: 'get',
  133. url: `${baseUrl}${common}/case/user/:id`
  134. },
  135. addCaseUser: { // 新增案场相关人员
  136. method: 'post',
  137. url: `${baseUrl}${common}/case/user`
  138. },
  139. editCaseUser: { // 更新案场相关人员
  140. method: 'put',
  141. url: `${baseUrl}${common}/case/user`
  142. },
  143. getKeyList: { // 获取钥匙列表
  144. method: 'get',
  145. url: `${baseUrl}${common}/case/key`
  146. },
  147. addKey: { // 新增钥匙
  148. method: 'post',
  149. url: `${baseUrl}${common}/case/key`
  150. },
  151. cancelKey: { // 取消钥匙
  152. method: 'put',
  153. url: `${baseUrl}${common}/case/unlock/:id`
  154. },
  155. deleteKey: { // 删除钥匙
  156. method: 'delete',
  157. url: `${baseUrl}${common}/case/key/:id`
  158. },
  159. getCaseAreaList: { // 获取案场区域列表
  160. method: 'get',
  161. url: `${baseUrl}${common}/case/area`
  162. },
  163. addCaseArea: { // 新增案场区域
  164. method: 'post',
  165. url: `${baseUrl}${common}/case/area`
  166. },
  167. deleteCaseArea: { // 删除案场区域
  168. method: 'delete',
  169. url: `${baseUrl}${common}/case/area/:id`
  170. },
  171. getCaseAreaInfo: { // 获取案场区域信息
  172. method: 'get',
  173. url: `${baseUrl}${common}/case/area/:id`
  174. },
  175. editCaseArea: { // 更新案场区域信息
  176. method: 'put',
  177. url: `${baseUrl}${common}/case/area`
  178. },
  179. getCaseTableList: { // 获取案场桌位列表
  180. method: 'get',
  181. url: `${baseUrl}${common}/case/table`
  182. },
  183. addCaseTable: { // 新增案场桌位
  184. method: 'post',
  185. url: `${baseUrl}${common}/case/table`
  186. },
  187. getCaseTableInfo: { // 查询案场桌位信息
  188. method: 'get',
  189. url: `${baseUrl}${common}/case/table/:id`
  190. },
  191. editCaseTable: { // 更新案场桌位信息
  192. method: 'put',
  193. url: `${baseUrl}${common}/case/table`
  194. },
  195. deleteCaseTable: { // 删除案场桌位信息
  196. method: 'delete',
  197. url: `${baseUrl}${common}/case/table/:id`
  198. },
  199. getCaseTagList: { // 获取案场标签列表
  200. method: 'get',
  201. url: `${baseUrl}${common}/case/tag`
  202. },
  203. addCaseTag: { // 新增案场标签
  204. method: 'post',
  205. url: `${baseUrl}${common}/case/tag`
  206. },
  207. getTagInfo: { // 获取案场标签信息
  208. method: 'get',
  209. url: `${baseUrl}${common}/case/tag/:id`
  210. },
  211. deleteCaseTag: { // 删除案场标签
  212. method: 'delete',
  213. url: `${baseUrl}${common}/case/tag/:id`
  214. },
  215. getUserTypeList: { // 获取用户类型列表
  216. method: 'get',
  217. url: `${baseUrl}${common}/usertype`
  218. },
  219. getRecordList: {
  220. method: 'get',
  221. url: `${baseUrl}${common}/case/record`
  222. },
  223. addRecord: {
  224. method: 'post',
  225. url: `${baseUrl}${common}/case/record`
  226. },
  227. getSignin: { // 获取签到列表
  228. method: 'get',
  229. url: `${baseUrl}${common}/case/signin`
  230. },
  231. getExcelSignin: { // 获取签到列表
  232. method: 'get',
  233. url: `${baseUrl}${common}/case/excelSignin`
  234. }
  235. },
  236. goodsManager: {
  237. getGoodsSpecList: { // 商品规格列表
  238. method: 'get',
  239. url: `${baseUrl}${common}/spec/goods`
  240. },
  241. addGoodsSpec: { // 新增商品规格
  242. method: 'post',
  243. url: `${baseUrl}${common}/spec/goods`
  244. },
  245. getGoodsSpecById: { // 根据id获取商品规格
  246. method: 'get',
  247. url: `${baseUrl}${common}/spec/goods/:id`
  248. },
  249. editGoodsSpec: { // 编辑商品规格
  250. method: 'put',
  251. url: `${baseUrl}${common}/spec/goods/:id`
  252. },
  253. deleteGoodsSpec: { // 删除商品规格
  254. method: 'delete',
  255. url: `${baseUrl}${common}/spec/goods/:id`
  256. },
  257. getGoodsTypeList: { // 商品种类列表
  258. method: 'get',
  259. url: `${baseUrl}${common}/type/goods`
  260. },
  261. addGoodsType: { // 新增商品种类
  262. method: 'post',
  263. url: `${baseUrl}${common}/type/goods`
  264. },
  265. getGoodsTypeById: { // 根据id获取商品种类
  266. method: 'get',
  267. url: `${baseUrl}${common}/type/goods/:id`
  268. },
  269. editGoodsType: { // 编辑商品种类
  270. method: 'put',
  271. url: `${baseUrl}${common}/type/goods/:id`
  272. },
  273. deleteGoodsType: { // 删除商品种类
  274. method: 'delete',
  275. url: `${baseUrl}${common}/type/goods/:id`
  276. },
  277. getGoodsList: {
  278. method: 'get',
  279. url: `${baseUrl}${common}/goods`
  280. },
  281. getGoodsByID: {
  282. method: 'get',
  283. url: `${baseUrl}${common}/goods/:id`
  284. },
  285. addGoods: {
  286. method: 'post',
  287. url: `${baseUrl}${common}/goods`
  288. },
  289. updateGoods: {
  290. method: 'put',
  291. url: `${baseUrl}${common}/goods/:id`
  292. },
  293. deleteGoods: {
  294. method: 'delete',
  295. url: `${baseUrl}${common}/goods/:id`
  296. },
  297. },
  298. cms: {
  299. location: { // 图片位置(5A)
  300. method: 'get',
  301. url: `${baseUrl}${common}/cms/location`
  302. },
  303. locationDetail: { // 5A详情
  304. method: 'get',
  305. url: `${baseUrl}${common}/cms/location/:id`
  306. },
  307. addLocation: { // 添加5A
  308. method: 'post',
  309. url: `${baseUrl}${common}/cms/location`
  310. },
  311. editLocation: { // 编辑5A
  312. method: 'put',
  313. url: `${baseUrl}${common}/cms/location/:id`
  314. },
  315. deleteLocation: { // 删除5A
  316. method: 'delete',
  317. url: `${baseUrl}${common}/cms/location/:id`
  318. },
  319. orderChange: {
  320. method: 'put',
  321. url: `${baseUrl}${common}/cms/location/:id/sort`
  322. },
  323. imageList: { // 轮播图列表
  324. method: 'get',
  325. url: `${baseUrl}${common}/cms/image`
  326. },
  327. imageDetail: { // 轮播图详情
  328. method: 'get',
  329. url: `${baseUrl}${common}/cms/image/:id`
  330. },
  331. addImage: { // 添加轮播图
  332. method: 'post',
  333. url: `${baseUrl}${common}/cms/image`
  334. },
  335. editImage: { // 编辑轮播图
  336. method: 'put',
  337. url: `${baseUrl}${common}/cms/image/:id`
  338. },
  339. deleteDetail: { // 删除轮播图
  340. method: 'delete',
  341. url: `${baseUrl}${common}/cms/image/:id`
  342. },
  343. case: { // 首页案场列表
  344. method: 'get',
  345. url: `${baseUrl}${common}/cms/case`
  346. },
  347. caseDetail: { // 首页案场详情
  348. method: 'get',
  349. url: `${baseUrl}${common}/cms/case/:id`
  350. },
  351. addCase: { // 添加首页案场
  352. method: 'post',
  353. url: `${baseUrl}${common}/cms/case`
  354. },
  355. editCase: { // 添加首页案场
  356. method: 'put',
  357. url: `${baseUrl}${common}/cms/case/:id`
  358. },
  359. deleteCase: { // 添加首页案场
  360. method: 'delete',
  361. url: `${baseUrl}${common}/cms/case/:id`
  362. },
  363. info: { // 首页消息列表
  364. method: 'get',
  365. url: `${baseUrl}${common}/cms/info`
  366. },
  367. infoDetail: { // 首页消息详情
  368. method: 'get',
  369. url: `${baseUrl}${common}/cms/info/:id`
  370. },
  371. addInfo: { // 新增首页消息
  372. method: 'post',
  373. url: `${baseUrl}${common}/cms/info`
  374. },
  375. editInfo: { // 编辑首页消息
  376. method: 'put',
  377. url: `${baseUrl}${common}/cms/info/:id`
  378. },
  379. deleteInfo: { // 删除首页消息
  380. method: 'delete',
  381. url: `${baseUrl}${common}/cms/info/:id`
  382. },
  383. news: { // 资讯列表
  384. method: 'get',
  385. url: `${baseUrl}${common}/cms/news`
  386. },
  387. newsDetail: { // 资讯详情
  388. method: 'get',
  389. url: `${baseUrl}${common}/cms/news/:id`
  390. },
  391. addNews: { // 新增资讯
  392. method: 'post',
  393. url: `${baseUrl}${common}/cms/news`
  394. },
  395. editNews: { // 编辑资讯
  396. method: 'put',
  397. url: `${baseUrl}${common}/cms/news/:id`
  398. },
  399. deleteNews: { // 删除资讯
  400. method: 'delete',
  401. url: `${baseUrl}${common}/cms/news/:id`
  402. },
  403. caseShow: { // 前台展示
  404. method: 'put',
  405. url: `${baseUrl}${common}/cms/caseshow/:id`
  406. },
  407. caseHide: { // 取消前台展示
  408. method: 'put',
  409. url: `${baseUrl}${common}/cms/casehide/:id`
  410. },
  411. getCourseLink: { // 获取课程链接列表
  412. method: 'get',
  413. url: `${baseUrl}${common}/dict/course`
  414. },
  415. },
  416. file: {
  417. image: { // 图片上传
  418. method: 'post',
  419. url: `${baseUrl}${common}/file`
  420. }
  421. },
  422. role: {
  423. list: {
  424. method: 'get',
  425. url: `${baseUrl}${common}/role`
  426. },
  427. info: {
  428. method: 'get',
  429. url: `${baseUrl}${common}/role/:id`
  430. },
  431. add: {
  432. method: 'post',
  433. url: `${baseUrl}${common}/role`
  434. },
  435. update: {
  436. method: 'put',
  437. url: `${baseUrl}${common}/role`
  438. },
  439. delete: {
  440. method: 'delete',
  441. url: `${baseUrl}${common}/role/:id`
  442. },
  443. getmenus: {
  444. method: 'get',
  445. url: `${baseUrl}${common}/rolemenu/:id`
  446. },
  447. savemenu: {
  448. method: 'put',
  449. url: `${baseUrl}${common}/rolemenu/:id`
  450. },
  451. },
  452. dataStatistics: {
  453. getCustomerList: { // 获取会员列表
  454. method: 'get',
  455. url: `${baseUrl}${common}/customer`
  456. }
  457. },
  458. device: {
  459. list: {
  460. method: 'get',
  461. url: `${baseUrl}${common}/case/equipment`
  462. },
  463. info: {
  464. method: 'get',
  465. url: `${baseUrl}${common}/case/equipment/:id`
  466. },
  467. add: {
  468. method: 'post',
  469. url: `${baseUrl}${common}/case/equipment`
  470. },
  471. update: {
  472. method: 'put',
  473. url: `${baseUrl}${common}/case/equipment`
  474. },
  475. delete: {
  476. method: 'delete',
  477. url: `${baseUrl}${common}/case/equipment/:id`
  478. },
  479. },
  480. course: {
  481. getCourseList: {
  482. method: 'get',
  483. url: `${baseUrl}${common}/courseues`
  484. },
  485. list: {
  486. method: 'get',
  487. url: `${baseUrl}${common}/course`
  488. },
  489. info: {
  490. method: 'get',
  491. url: `${baseUrl}${common}/course/:id`
  492. },
  493. tags: {
  494. method: 'get',
  495. url: `${baseUrl}${common}/coursetag`
  496. },
  497. add: {
  498. method: 'post',
  499. url: `${baseUrl}${common}/course`
  500. },
  501. update: {
  502. method: 'put',
  503. url: `${baseUrl}${common}/course`
  504. },
  505. delete: {
  506. method: 'delete',
  507. url: `${baseUrl}${common}/course/:id`
  508. },
  509. public: {
  510. method: 'put',
  511. url: `${baseUrl}${common}/course/:id/public`
  512. },
  513. unpublic: {
  514. method: 'put',
  515. url: `${baseUrl}${common}/course/:id/unpublic`
  516. },
  517. getimgs: {
  518. method: 'get',
  519. url: `${baseUrl}${common}/courseimg/:id`
  520. },
  521. addimgs: {
  522. method: 'post',
  523. url: `${baseUrl}${common}/courseimg`
  524. },
  525. updateimgs: {
  526. method: 'put',
  527. url: `${baseUrl}${common}/courseimg`
  528. },
  529. deleteimgs: {
  530. method: 'delete',
  531. url: `${baseUrl}${common}/courseimg/:id`
  532. },
  533. schedule: {
  534. method: 'get',
  535. url: `${baseUrl}${common}/schedule`
  536. },
  537. detail: {
  538. method: 'get',
  539. url: `${baseUrl}${common}/detail`
  540. },
  541. getDetailByID: {
  542. method: 'get',
  543. url: `${baseUrl}${common}/detail/:id`
  544. },
  545. addDetail: {
  546. method: 'post',
  547. url: `${baseUrl}${common}/detail`
  548. },
  549. updateDetail: {
  550. method: 'put',
  551. url: `${baseUrl}${common}/detail`
  552. },
  553. delDetail: {
  554. method: 'delete',
  555. url: `${baseUrl}${common}/detail/:id`
  556. },
  557. },
  558. verification: {
  559. coursebycode: {
  560. method: 'get',
  561. url: `${baseUrl}${common}/verify/course/code/:id`
  562. },
  563. coursebytel: {
  564. method: 'get',
  565. url: `${baseUrl}${common}/verify/course/tel/:tel`
  566. },
  567. courseverify: {
  568. method: 'put',
  569. url: `${baseUrl}${common}/verify/course/:id`
  570. },
  571. drawVerify: {
  572. method: 'put',
  573. url: `${baseUrl}${common}/luckdrawlist/verify/:id`
  574. },
  575. drawVerifyList: {
  576. method: 'get',
  577. url: `${baseUrl}${common}/luckdrawlist/verify/:id`
  578. },
  579. getCustomerName: {
  580. method: 'get',
  581. url: `${baseUrl}${common}/customer/tel/:id`
  582. },
  583. },
  584. goodsOrder: {
  585. getOnlineOrder: {
  586. method: 'get',
  587. url: `${baseUrl}${common}/order/online/goods`
  588. },
  589. getOrdersByRecord: {
  590. method: 'get',
  591. url: `${baseUrl}${common}/order/goods/record/:id`
  592. },
  593. openBusiness: {
  594. method: 'put',
  595. url: `${baseUrl}${common}/case/open/:caseid`
  596. },
  597. closeBusiness: {
  598. method: 'put',
  599. url: `${baseUrl}${common}/case/close/:caseid`
  600. },
  601. getBusinessStatus: {
  602. method: 'get',
  603. url: `${baseUrl}${common}/case/conf/:id`
  604. },
  605. checkOrder: {
  606. method: 'put',
  607. url: `${baseUrl}${common}/order/goods/finish/:id`
  608. },
  609. cancelOrder: {
  610. method: 'put',
  611. url: `${baseUrl}${common}/order/goods/cancel/:id`
  612. }
  613. },
  614. cardManager: {
  615. viplist: {
  616. method: 'get',
  617. url: `${baseUrl}${common}/vipcard`
  618. },
  619. vipadd: {
  620. method: 'post',
  621. url: `${baseUrl}${common}/vipcard`
  622. },
  623. vipcharge: {
  624. method: 'put',
  625. url: `${baseUrl}${common}/vipcard/:code`
  626. },
  627. vipbycode: {
  628. method: 'get',
  629. url: `${baseUrl}${common}/vipcard/:code`
  630. },
  631. cardList: {
  632. method: 'get',
  633. url: `${baseUrl}${common}/card`
  634. },
  635. addCard: {
  636. method: 'post',
  637. url: `${baseUrl}${common}/card`
  638. },
  639. editCard: {
  640. method: 'put',
  641. url: `${baseUrl}${common}/card/:id`
  642. },
  643. getCardById: {
  644. method: 'get',
  645. url: `${baseUrl}${common}/card/:id`
  646. },
  647. giveCard: {
  648. method: 'post',
  649. url: `${baseUrl}${common}/card/:id/to/:users`
  650. },
  651. },
  652. couponManager: {
  653. couponList: {
  654. method: 'get',
  655. url: `${baseUrl}${common}/coupon`
  656. },
  657. addCoupon: {
  658. method: 'post',
  659. url: `${baseUrl}${common}/coupon`
  660. },
  661. editCoupon: {
  662. method: 'put',
  663. url: `${baseUrl}${common}/coupon/:id`
  664. },
  665. getCouponById: {
  666. method: 'get',
  667. url: `${baseUrl}${common}/coupon/:id`
  668. },
  669. giveCoupon: {
  670. method: 'post',
  671. url: `${baseUrl}${common}/coupon/:id/to/:users`
  672. },
  673. },
  674. gymCardManager: {
  675. gymCardList: {
  676. method: 'get',
  677. url: `${baseUrl}${common}/gymcard`
  678. },
  679. addGymCard: {
  680. method: 'post',
  681. url: `${baseUrl}${common}/gymcard`
  682. },
  683. editGymCard: {
  684. method: 'put',
  685. url: `${baseUrl}${common}/gymcard`
  686. },
  687. getGymCardById: {
  688. method: 'get',
  689. url: `${baseUrl}${common}/gymcard/:id`
  690. },
  691. giveCard: {
  692. method: 'post',
  693. url: `${baseUrl}${common}/gymcard/:id/to/:users`
  694. }
  695. },
  696. customerManager: {
  697. getByTel: {
  698. method: 'get',
  699. url: `${baseUrl}${common}/customer/tel/:tel`
  700. },
  701. getCustomerList: { // 获取会员列表
  702. method: 'get',
  703. url: `${baseUrl}${common}/customer`
  704. }
  705. },
  706. marketingActivities: { // 营销活动
  707. getMarketingList: { // 查询所有
  708. method: 'get',
  709. url: `${baseUrl}${common}/marketing/list`
  710. },
  711. addMarketing: { // 添加
  712. method: 'post',
  713. url: `${baseUrl}${common}/marketing`
  714. },
  715. delMarketing: { // 删除
  716. method: 'delete',
  717. url: `${baseUrl}${common}/marketing/:activityId`
  718. },
  719. delMarketingNormal: { // 启用
  720. method: 'put',
  721. url: `${baseUrl}${common}/marketing/normal/:activityId`
  722. },
  723. delMarketingDisable: { // 停用
  724. method: 'put',
  725. url: `${baseUrl}${common}/marketing/disable/:activityId`
  726. },
  727. getCouponList: { // 获取赠券卡券类型
  728. method: 'get',
  729. url: `${baseUrl}${common}/coupon/type/:type`
  730. }
  731. },
  732. statistics: {
  733. goods: {
  734. method: 'get',
  735. url: `${baseUrl}${common}/statistics/goods`
  736. },
  737. goodsExcel: {
  738. method: 'get',
  739. url: `${baseUrl}${common}/statistics/goods/excel`
  740. },
  741. goodsOrder: {
  742. method: 'get',
  743. url: `${baseUrl}${common}/statistics/goodsorders`
  744. },
  745. goodsOrderExcel: {
  746. method: 'get',
  747. url: `${baseUrl}${common}/statistics/goodsorders/excel`
  748. },
  749. courseOrder: {
  750. method: 'get',
  751. url: `${baseUrl}${common}/statistics/courseorders`
  752. },
  753. courseOrderExcel: {
  754. method: 'get',
  755. url: `${baseUrl}${common}/statistics/courseorders/excel`
  756. },
  757. courseList: {
  758. method: 'get',
  759. url: `${baseUrl}${common}/statistics/courses`
  760. },
  761. courseListExcel: {
  762. method: 'get',
  763. url: `${baseUrl}${common}/statistics/courses/excel`
  764. },
  765. cardCouponList: {
  766. method: 'get',
  767. url: `${baseUrl}${common}/statistics/cardcoupon`
  768. },
  769. cardCouponListExcel: {
  770. method: 'get',
  771. url: `${baseUrl}${common}/statistics/cardcoupon/excel`
  772. },
  773. cardCouponUsedList: {
  774. method: 'get',
  775. url: `${baseUrl}${common}/statistics/cardcouponused`
  776. },
  777. cardCouponUsedListExcel: {
  778. method: 'get',
  779. url: `${baseUrl}${common}/statistics/cardcouponused/excel`
  780. },
  781. courseVerifyList: {
  782. method: 'get',
  783. url: `${baseUrl}${common}/statistics/cardcouponverify`
  784. },
  785. courseVerifyListExcel: {
  786. method: 'get',
  787. url: `${baseUrl}${common}/statistics/cardcouponverify/excel`
  788. },
  789. },
  790. dashboard: {
  791. dashboardData: {
  792. method: 'get',
  793. url: `${baseUrl}${common}/dashboard`
  794. },
  795. dashboardBottomData: {
  796. method: 'get',
  797. url: `${baseUrl}${common}/dashboard/charts`
  798. },
  799. },
  800. health: {
  801. healthList: {
  802. method: 'get',
  803. url: `${baseUrl}${common}/bodychecklist`
  804. }
  805. },
  806. luckDraw: {
  807. luckDrawList: {
  808. method: 'get',
  809. url: `${baseUrl}${common}/luckdrawlist`
  810. },
  811. luckDrawShareList: {
  812. method: 'get',
  813. url: `${baseUrl}${common}/luckdrawlist/share`
  814. }
  815. },
  816. record: {
  817. getRecordList: {
  818. method: 'get',
  819. url: `${baseUrl}${common}/card/record`
  820. }
  821. }
  822. }
  823. export default $api