text: import request from '@/utils/request' //引入已经封装好的axios 和 拦截器
  
  export default {
      //1、添加课程信息
      addCourseInfo(courseInfo){
          return request({
              url:"/eduService/course/addCourseInfo",
              method: 'post',
              data: courseInfo,
          })
      },
      //查询所有讲师
      getAllTeacher(){
          return request({
              url:"/eduService/teacher/findAll",
              method: 'get',
          })
      },
      //根据课程id查询课程基本信息
      getCourseInfoById(courseId){
          return request({
              url:`/eduService/course/getCourseInfo/${courseId}`,
              method: 'get',
          })
      },
      //修改课程信息
      updateCourseInfo(courseInfoForm){
          return request({
              url:"/eduService/course/updateCourseInfo",
              method: 'post',
              data: courseInfoForm,
          })
      },
      //课程确认信息显示
      getPublishCourseInfo(courseId){
          return request({
              url:"/eduService/coursee/getpublishCourseInfo/"+courseId,
              method: 'get',
          })
      },
  
      
  }