import { http } from './http'

const config = {
  baseURL: '/api/campus',
}

const classroomInteractionApi = {
  /**
   * 获取学生随堂检测历史
   */
  getClassDetectionRecordList: (params: anyObj) => {
    return http.request({
      url: '/sc/classDetectionRecord/list',
      params,
      ...config,
    })
  },

  /**
   * 新增随堂检测记录
   */
  addClassDetectionRecord: (data: anyObj) => {
    return http.request({
      url: '/sc/classDetectionRecord',
      method: 'POST',
      data,
      ...config,
    })
  },
}

export default classroomInteractionApi
