feat: 🎸 更新了一部分接口请求信息

This commit is contained in:
2025-08-20 22:39:05 +08:00
parent d4b4bc82f3
commit 9895101fde
13 changed files with 116 additions and 141 deletions

View File

@@ -1,6 +1,6 @@
import request from "@/utils/request";
// 获取学生信息
export async function getCurrentStudent() {
// 获取当前登录学生信息
export async function getLoginStudentInfo() {
return request.get("/api/students/me");
}

View File

@@ -5,7 +5,8 @@ import {
} from "./dashboard";
import { getProjectsList } from "./projectLibrary";
import { getJobsList, getInterviewsList } from "./companyJobs";
import { getCurrentStudent } from "./global";
import { getLoginStudentInfo } from "./global";
import { getLoginStudentProgress } from "./personalProfile";
export {
getDashboardStatistics,
@@ -14,5 +15,6 @@ export {
getProjectsList,
getJobsList,
getInterviewsList,
getCurrentStudent,
getLoginStudentInfo,
getLoginStudentProgress,
};

View File

@@ -0,0 +1,6 @@
import request from "@/utils/request";
// 获取当前登录学生学习进度
export async function getLoginStudentProgress(id) {
return request.get(`/api/students/${id}/progress`);
}