feat: 🎸 新增了两个接口
This commit is contained in:
@@ -19,8 +19,8 @@ export default ({ visible, onClose, data }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 点击立即投递
|
// 点击立即投递
|
||||||
const handleClickDeliverBtn = () => {
|
const handleClickDeliverBtn = (e) => {
|
||||||
console.log(data);
|
e.stopPropagation();
|
||||||
setResumeModalShow(true);
|
setResumeModalShow(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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}`);
|
||||||
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user