import request from '@/utils/request'

// 查询学生列表
export function listStudents(query) {
  return request({
    url: '/business/students/list',
    method: 'get',
    params: query
  })
}

// 查询学生详细
export function getStudents(studentId) {
  return request({
    url: '/business/students/' + studentId,
    method: 'get'
  })
}

// 新增学生
export function addStudents(data) {
  return request({
    url: '/business/students',
    method: 'post',
    data: data
  })
}

// 修改学生
export function updateStudents(data) {
  return request({
    url: '/business/students',
    method: 'put',
    data: data
  })
}

// 删除学生
export function delStudents(studentId) {
  return request({
    url: '/business/students/' + studentId,
    method: 'delete'
  })
}
