import apiClient, { apiEndpoints } from './index.js' // 获取学生列表 export const getStudents = async () => { try { const response = await apiClient.get(apiEndpoints.STUDENTS.LIST) return response.data } catch (error) { throw new Error(error?.response?.data?.detail || error?.message || 'Failed to fetch students') } }