import request from "@/utils/request";

//项目用户相关的请求地址
enum API {
  // 获取用户汇总数据 接口地址
  USERINFO_URL = "/wanzai/api/driver/getUserPage",
  // 获取学生历史出勤数据 接口地址
  STUDENTATTENDANCE_URL = "/wanzai/api/smartAttendance/historicalAttendance",
  // 获取学生各科成绩的平均分 接口地址
  SCOREINFO_URL = "/wanzai/api/smartScore/averageScore",
  // 获取教师寄语 接口地址
  TEACHERMSG_URL = "/wanzai/api/smartScore/teacherMessage",
  // 获取日常轨迹 接口地址
  TRACKDATA_URL = "/wanzai/api/smartFaceDiscern/lastSevenDaysTrack",
  // 获取考试名称数组 接口地址
  EXAMNAME_URL = "/wanzai/api/smartScore/studentExamName",
  // 获取历史成绩统计 接口地址
  HISEXAMDATA_URL = "/wanzai/api/smartScore/historicalExam",
  // 获取考评记录数据 接口地址
  EVALUATEDATA_URL = "/wanzai/api/smartEvaluateStudent/historicalEvaluation",

  // 获取教师战力值排行榜数据 接口地址
  RANKINGLIST = "/wanzai/api/smartEvaluateTeacher/rankingList",

  // 学生考勤统计
  STUDENTCHECKIN = "/wanzai/api/smartAttendance/studentHistoricalAttendance",

  // 考勤记录列表数据
  CHECKLIST = "/wanzai/api/smartAttendance/classHistoricalAttendance",
}

// 获取用户汇总数据
export const reqGetUserInfo = (data: any) =>
  request.get(API.USERINFO_URL, { params: data });

// 获取学生历史出勤数据
export const reqGetStudentAttendance = (data: any) =>
  request.get(API.STUDENTATTENDANCE_URL, { params: data });

// 获取学生各科成绩的平均分
export const reqGetScoreInfo = (data: any) =>
  request.get(API.SCOREINFO_URL, { params: data });

// 获取教师寄语
export const reqGetTeacherMsg = (data: any) =>
  request.get(API.TEACHERMSG_URL, { params: data });

// 获取日常轨迹
export const reqGetTrackData = (data: any) =>
  request.get(API.TRACKDATA_URL, { params: data });

// 获取考试名称数组
export const reqGetExamName = (data: any) =>
  request.get(API.EXAMNAME_URL, { params: data });

// 获取历史成绩统计
export const reqGetHisExamData = (data: any) =>
  request.get(API.HISEXAMDATA_URL, { params: data });

// 获取考评记录数据
export const reqGetEvaluateData = (data: any) =>
  request.get(API.EVALUATEDATA_URL, { params: data });

// 获取教师战力值排行榜数据
export const reqGetRankingList = (data: any) =>
  request.get(API.RANKINGLIST, { params: data });

// 学生考勤统计
export const reqGetStudentCheckin = (params: any) =>
  request.get(API.STUDENTCHECKIN, { params });

// 考勤记录列表数据
export const reqGetCheckList = (params: any) =>
  request.get(API.CHECKLIST, { params });
