text: import { stringify } from 'qs';
  import request from '@/utils/request';
  import globalData from '@/utils/globalData';
  
  export async function getList(params) {
    return request(
      `${globalData.baseUrl + globalData.projectName}/course/getList?${stringify(params)}`,
      {
        method: globalData.GET,
      }
    );
  }
  
  export async function save(params) {
    return request(`${globalData.baseUrl + globalData.projectName}/course/save`, {
      method: globalData.POST,
      body: params,
    });
  }
  
  export async function deleteBatch(params) {
    return request(
      `${globalData.baseUrl + globalData.projectName}/course/delete?${stringify(params)}`,
      {
        method: globalData.GET,
      }
    );
  }
  
  export async function changeCourseStatus(params) {
    return request(
      `${globalData.baseUrl + globalData.projectName}/course/changeCourseStatus?${stringify(params)}`,
      {
        method: globalData.GET,
      }
    );
  }
  