import fetch from '@/api/fetch';

export const fetchTeacherList = entity =>
  fetch({
    url: '/teacher/teacher4Page',
    method: 'post',
    data: entity,
  });

export const addTeacher = entity =>
  fetch({
    url: '/teacher/teacher4Add',
    method: 'post',
    data: entity,
  });

export const updateTeacher = entity =>
  fetch({
    url: '/teacher/teacher4Update',
    method: 'post',
    data: entity,
  });

export const toggleTeacherStatus = entity =>
  fetch({
    url: '/teacher/teacher4Auther',
    method: 'post',
    data: entity,
  });
