import request from '@/utils/request';

/**
 * 获取全部的班级数据
 */
export async function getAllClasses(params) {
  const res = await request.get(
    'https://cdn.eleadmin.com/20200610/classes.json',
    { params }
  );
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
