You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
import http from '../common/axios.js'
|
|
|
|
export default {
|
|
//↓↓↓↓↓↓↓↓↓↓↓↓-----学员信息管理接口-----↓↓↓↓↓↓↓↓↓↓↓↓
|
|
// 获取当前用户的学员列表
|
|
async getStudentList(data = {}) {
|
|
return await http.get('/student/mychild', data);
|
|
},
|
|
|
|
// 获取学员概览信息(首页用)
|
|
async getStudentSummary(studentId) {
|
|
return await http.get(`/student/summary/${studentId}`);
|
|
},
|
|
|
|
// 获取学员详细信息(包含体测信息)
|
|
async getStudentInfo(studentId) {
|
|
return await http.get(`/student/info/${studentId}`);
|
|
},
|
|
|
|
// 更新学员信息
|
|
async updateStudentInfo(data = {}) {
|
|
return await http.put('/student/update', data);
|
|
},
|
|
|
|
// 上传学员头像
|
|
async uploadStudentAvatar(data = {}) {
|
|
return await http.post('/student/avatar', data);
|
|
},
|
|
|
|
// 获取未读消息数量(如果有接口的话,暂时模拟)
|
|
async getUnreadMessageCount(data = {}) {
|
|
// 这里可以调用真实的消息接口,暂时返回模拟数据
|
|
return {
|
|
code: 1,
|
|
data: {
|
|
unread_count: Math.floor(Math.random() * 5)
|
|
}
|
|
};
|
|
},
|
|
}
|