{"size": 2610, "ext": "js", "max_stars_repo_path": "src/api/admin.js", "max_stars_repo_name": "A7103/Online-Assignment-System-Front-end", "max_stars_repo_stars_event_min_datetime": "2021-05-31T06:18:26.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-31T06:18:26.000Z", "max_issues_repo_path": "src/api/admin.js", "max_issues_repo_name": "A7103/Online-Assignment-System-Front-end", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/admin.js", "max_forks_repo_name": "A7103/Online-Assignment-System-Front-end", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.6240601504, "max_line_length": 52, "alphanum_fraction": 0.6413793103}
import request from '@/utils/request'
export function getAllCourse() {
  return request({
    url: '/admin/course/getAllCourse',
    method: 'get'
  })
}

export function modifyCourse(data) {
  return request({
    url: '/admin/course/modifyCourse',
    method: 'post',
    data
  })
}

export function deleteCourse(data) {
  return request({
    url: '/admin/course/deleteCourse',
    method: 'post',
    params: {
      teacherId: data.teacherId,
      courseId: data.courseId
    }
  })
}
export function getAllStudentInfo(data) {
  return request({
    url: '/admin/course/getAllStudentInfo',
    method: 'get',
    params: {
      courseId: data
    }
  })
}
export function excelImport(formData, courseId) {
  return request({
    type: 'excelFile',
    url: '/admin/file/excelImport',
    method: 'post',
    params: {
      courseId: courseId
    }
  })
}
export function createCourse(data) {
  return request({
    url: '/admin/course/createCourse',
    method: 'post',
    data
  })
}
export function getTeacherList() {
  return request({
    url: '/admin/course/getTeacherList',
    method: 'post'
  })
}
export function AdminGetAssignment() {
  return request({
    url: '/admin/assignment/adminGetAssignment',
    method: 'get'
  })
}
export function modifyAssignment(data) {
  return request({
    url: '/admin/assignment/modifyAssignment',
    method: 'post',
    data
  })
}
export function createAssignment(data) {
  return request({
    url: '/admin/assignment/adminCreateCourse',
    method: 'post',
    data
  })
}
export function deleteWork(data) {
  return request({
    url: '/admin/assignment/deleteWork',
    method: 'post',
    params: {
      authorId: data.authorId,
      assignmentId: data.assignmentId
    }
  })
}
export function getCourseList(data) {
  return request({
    url: '/admin/assignment/getCourseListByTeacher',
    method: 'post',
    params: {
      authorId: data
    }
  })
}
export function getCourseTeacherList() {
  return request({
    url: '/admin/assignment/getCourseTeacherList',
    method: 'post'
  })
}
export function getAllStudentList() {
  return request({
    url: '/admin/user/getAllStudentList',
    method: 'get'
  })
}
export function getAllTeacherList() {
  return request({
    url: '/admin/user/getAllTeacherList',
    method: 'get'
  })
}
export function changeAccountDisable(data) {
  return request({
    url: '/admin/user/changeAccountDisable',
    method: 'post',
    data
  })
}
export function deleteUser(data) {
  return request({
    url: '/admin/user/deleteUser',
    method: 'post',
    params: {
      userId: data
    }
  })
}

