index.js 533 B

123456789101112131415161718192021222324252627
  1. import axios from '@/utils/request'
  2. // 获取主题列表
  3. export function getThemeList (data) {
  4. return axios({
  5. url: 'bjdxWeb/blockly/getTypeTheme',
  6. method: 'get',
  7. data
  8. })
  9. }
  10. // 获取类型列表
  11. export function getTypeByThemeId (id) {
  12. return axios({
  13. url: 'bjdxWeb/blockly/getTypeByThemeId?id=' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 根据ID获取课程列表
  18. export function getBlocklyByTypeId (typeId) {
  19. return axios({
  20. url: 'bjdxWeb/blockly/getBlocklyByTypeId?typeId=' + typeId,
  21. method: 'get'
  22. })
  23. }