api.js 27KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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. excelActivity: { // 导出Excel
  880. method: 'get',
  881. url: `${baseUrl}${common}/luckdraw/excel/:id`
  882. },
  883. getFlashbuyTemplateList: { // 营销活动-获取抢购模板列表
  884. method: 'get',
  885. url: `${baseUrl}${common}/flashbuy/model`
  886. },
  887. addFlashbuy: { // 营销活动-新增抢购活动
  888. method: 'post',
  889. url: `${baseUrl}${common}/flashbuy`
  890. },
  891. getFlashbuyList: { // 营销活动-获取抢购活动列表
  892. method: 'get',
  893. url: `${baseUrl}${common}/flashbuy`
  894. },
  895. getFlashbuyById: { // 营销活动-获取抢购活动信息
  896. method: 'get',
  897. url: `${baseUrl}${common}/flashbuy/:id`
  898. },
  899. editFlashbuy: { // 营销活动-更新抢购活动
  900. method: 'put',
  901. url: `${baseUrl}${common}/flashbuy/edit`
  902. },
  903. deleteFlashbuy: { // 营销活动-删除抢购活动
  904. method: 'delete',
  905. url: `${baseUrl}${common}/flashbuy/:id`
  906. },
  907. getFlashbuyRecordsById: { // 营销活动-获取抢购活动记录
  908. method: 'get',
  909. url: `${baseUrl}${common}/flashbuy/customer/:id`
  910. },
  911. updateFlashbuyStatus: { // 营销活动-更新抢购活动状态
  912. method: 'put',
  913. url: `${baseUrl}${common}/flashbuy/:id/:status`
  914. },
  915. excelFlashbuy: {
  916. method: 'get',
  917. url: `${baseUrl}${common}/flashbuy/excel/:id`
  918. },
  919. getCardListByCaseId: { // 获取案场下卡列表
  920. method: 'get',
  921. url: `${baseUrl}${common}/card/sys/:id`
  922. },
  923. getCouponListByCaseId: { // 获取案场下券列表
  924. method: 'get',
  925. url: `${baseUrl}${common}/coupon/sys/:id`
  926. },
  927. getCalendarList: {
  928. method: 'get',
  929. url: `${baseUrl}${common}/calendar`
  930. },
  931. calendarExcel: {
  932. method: 'get',
  933. url: `${baseUrl}${common}/calendar/excel`
  934. },
  935. calendarStausChange: {
  936. method: 'put',
  937. url: `${baseUrl}${common}/calendar/:calendarIds`
  938. },
  939. downCalendarPic: {
  940. method: 'get',
  941. url: `${baseUrl}${common}/calendar/:calendarId/:imgType`
  942. },
  943. },
  944. record: {
  945. getRecordList: {
  946. method: 'get',
  947. url: `${baseUrl}${common}/record`
  948. }
  949. },
  950. borrow: {
  951. getBorrowList: {
  952. method: 'get',
  953. url: `${baseUrl}${common}/book/record`
  954. },
  955. cancelBorrow: {
  956. method: 'put',
  957. url: `${baseUrl}${common}/book/cancel/:id`
  958. }
  959. },
  960. bookType: {
  961. list: {
  962. method: 'get',
  963. url: `${baseUrl}${common}/booktype`
  964. },
  965. detail: {
  966. method: 'get',
  967. url: `${baseUrl}${common}/booktype/:id`
  968. },
  969. save: {
  970. method: 'post',
  971. url: `${baseUrl}${common}/booktype`
  972. },
  973. update: {
  974. method: 'post',
  975. url: `${baseUrl}${common}/booktype`
  976. },
  977. delete: {
  978. method: 'delete',
  979. url: `${baseUrl}${common}/booktype/:id`
  980. },
  981. },
  982. book: {
  983. list: {
  984. method: 'get',
  985. url: `${baseUrl}${common}/book`
  986. },
  987. detail: {
  988. method: 'get',
  989. url: `${baseUrl}${common}/book/:id`
  990. },
  991. save: {
  992. method: 'post',
  993. url: `${baseUrl}${common}/book`
  994. },
  995. update: {
  996. method: 'put',
  997. url: `${baseUrl}${common}/book`
  998. },
  999. delete: {
  1000. method: 'delete',
  1001. url: `${baseUrl}${common}/book/:id`
  1002. },
  1003. import: {
  1004. method: 'post',
  1005. url: `${baseUrl}${common}/book/excel`
  1006. },
  1007. history: {
  1008. method: 'get',
  1009. url: `${baseUrl}${common}/book/customer/:customerInfo`
  1010. },
  1011. borrow: {
  1012. method: 'put',
  1013. url: `${baseUrl}${common}/book/borrow/:bookIds/:customerId`
  1014. },
  1015. inStock: {
  1016. method: 'get',
  1017. url: `${baseUrl}${common}/book/instock/:bookId`
  1018. },
  1019. changeStock: {
  1020. method: 'post',
  1021. url: `${baseUrl}${common}/book/change`
  1022. },
  1023. getUserReturn: {
  1024. method: 'get',
  1025. url: `${baseUrl}${common}/book/return/:customerInfo`
  1026. },
  1027. returnBook: {
  1028. method: 'post',
  1029. url: `${baseUrl}${common}/book/return/:borrowIds`
  1030. },
  1031. },
  1032. }
  1033. export default $api