systemPlan.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. //新增学习计划
  6. addsystemplan(data) {
  7. return myRequest({
  8. url: '/system/plan',
  9. method: 'post',
  10. data: data
  11. })
  12. },
  13. //修改学习计划
  14. editsystemplan(data) {
  15. return myRequest({
  16. url: '/system/plan/edit',
  17. method: 'post',
  18. data: data
  19. })
  20. },
  21. //查询学习计划列表
  22. getsystemplanlist(data) {
  23. return myRequest({
  24. url: '/system/plan/list',
  25. method: 'get',
  26. data: data
  27. })
  28. },
  29. //查询学员拥有商品能生成学习计划的商品
  30. getsystemplanlistGoods(data) {
  31. return myRequest({
  32. url: '/system/plan/listGoods',
  33. method: 'get',
  34. data: data
  35. })
  36. },
  37. //获得展示的日历学习计划,不添加到数据库
  38. getsystemplanlistPlan(data) {
  39. return myRequest({
  40. url: '/system/plan/listPlan',
  41. method: 'post',
  42. data: data
  43. })
  44. },
  45. //获取学习计划详细信息
  46. systemplanInfo(data) {
  47. return myRequest({
  48. url: '/system/plan/inFo',
  49. method: 'get',
  50. data: data
  51. })
  52. },
  53. userPlanSeven(data) {
  54. return myRequest({
  55. url: '/system/plan/userPlanSeven',
  56. method: 'get',
  57. data: data
  58. })
  59. }
  60. }