feat: 🎸 新增了两个接口

This commit is contained in:
2025-08-20 21:35:14 +08:00
parent f1a2a24939
commit d4b4bc82f3
3 changed files with 9 additions and 2 deletions

View File

@@ -19,8 +19,8 @@ export default ({ visible, onClose, data }) => {
}; };
// 点击立即投递 // 点击立即投递
const handleClickDeliverBtn = () => { const handleClickDeliverBtn = (e) => {
console.log(data); e.stopPropagation();
setResumeModalShow(true); setResumeModalShow(true);
}; };

View File

@@ -7,3 +7,8 @@ export async function getDashboardStatistics(studentId) {
export async function getLearningProgressSummary(studentId) { export async function getLearningProgressSummary(studentId) {
return request.get(`/api/dashboard/learning-summary/${studentId}`); return request.get(`/api/dashboard/learning-summary/${studentId}`);
} }
// 获取班级排名
export async function getClassRanking(classId) {
return request.get(`/api/rankings/class/${classId}`);
}

View File

@@ -1,6 +1,7 @@
import { import {
getDashboardStatistics, getDashboardStatistics,
getLearningProgressSummary, getLearningProgressSummary,
getClassRanking,
} from "./dashboard"; } from "./dashboard";
import { getProjectsList } from "./projectLibrary"; import { getProjectsList } from "./projectLibrary";
import { getJobsList, getInterviewsList } from "./companyJobs"; import { getJobsList, getInterviewsList } from "./companyJobs";
@@ -9,6 +10,7 @@ import { getCurrentStudent } from "./global";
export { export {
getDashboardStatistics, getDashboardStatistics,
getLearningProgressSummary, getLearningProgressSummary,
getClassRanking,
getProjectsList, getProjectsList,
getJobsList, getJobsList,
getInterviewsList, getInterviewsList,