import { get } from '../../http'

// 参数类型定义
interface ClassLearnDataParams {
  classId?: string
  endDate?: string
  schoolId?: string
  startDate?: string
}

// 获取学校列表
const getSchoolByFlag = async () => {
  return await get<any>('/sysUser/querySchoolByFlag')
}

// 获取班级汇总数据
const getClassTotalLearnData = async (params: ClassLearnDataParams) => {
  return await get<any>('/sysUser/queryClassTotalLearnData', params)
}

// 获取班级每日数据
const getClassTodayLearnDataUsingGET = async (params: ClassLearnDataParams) => {
  return await get<any>('/sysUser/queryClassTodayLearnData', params)
}

const classReportApi = {
  getSchoolByFlag,
  getClassTotalLearnData,
  getClassTodayLearnDataUsingGET,
}

export default classReportApi
