api.js 24KB

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