feat: 🎸 更新了一部分接口请求信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 获取学生信息
|
||||
export async function getCurrentStudent() {
|
||||
// 获取当前登录学生信息
|
||||
export async function getLoginStudentInfo() {
|
||||
return request.get("/api/students/me");
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
6
src/services/personalProfile.js
Normal file
6
src/services/personalProfile.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 获取当前登录学生学习进度
|
||||
export async function getLoginStudentProgress(id) {
|
||||
return request.get(`/api/students/${id}/progress`);
|
||||
}
|
||||
Reference in New Issue
Block a user