更改
This commit is contained in:
parent
9bd11e351a
commit
ef56fd2457
@ -10,8 +10,81 @@ export function addTeacher(data){
|
||||
|
||||
export function register(data){
|
||||
return request({
|
||||
url: "/system/hit_reg_info",
|
||||
url: "/system/hit_stu_info",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//根据学号查询学生信息
|
||||
export function getStudentInfoByStuId(studentId) {
|
||||
// 直接将 studentId 插入到 URL 路径中
|
||||
const url = `/system/hit_stu_info/${studentId}`;
|
||||
|
||||
// 发送 GET 请求
|
||||
return request({
|
||||
url: url,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
//根据学校及赛区查询队友信息
|
||||
export function getTeamMateInfo(schoolName,division) {
|
||||
return request({
|
||||
url: `/system/hit_stu_info/getTeamMateInfo`,
|
||||
method: "get",
|
||||
params: {
|
||||
schoolName,
|
||||
division
|
||||
}
|
||||
})}
|
||||
//根据学校及赛区查询老师信息
|
||||
export function getTeacherInfo(schoolName,division) {
|
||||
return request({
|
||||
url: `/HitRegistrationTeachInfo/HitRegistrationTeachInfo/getTeacherInfo`,
|
||||
method: "get",
|
||||
params: {
|
||||
schoolName,
|
||||
division
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//初赛报名
|
||||
export function PreliminaryRegistration(data){
|
||||
return request({
|
||||
url: "system/hit-teams/pre-register",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//查询是否有人与我组队
|
||||
export function getTeamMate() {
|
||||
return request({
|
||||
url: `/system/hit_stu_info/getTeam`,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
//同意组队
|
||||
export function agreeTeam(teamId, teamMateId){
|
||||
return request({
|
||||
url: "system/hit-team-members/agreeTeam",
|
||||
method: "put",
|
||||
params: {
|
||||
teamId,
|
||||
teamMateId
|
||||
}
|
||||
})
|
||||
}
|
||||
//拒绝组队
|
||||
export function refuseTeam(teamId){
|
||||
return request({
|
||||
url: "system/hit-team-members/refuseTeam",
|
||||
method: "delete",
|
||||
params: {
|
||||
teamId
|
||||
}
|
||||
})
|
||||
|
||||
}
|
@ -150,3 +150,11 @@ export function getHomeShortcuts() {
|
||||
method: "get"
|
||||
})
|
||||
}
|
||||
|
||||
//获取老师及学生信息
|
||||
export function getTeacherAndStudentInfo() {
|
||||
return request({
|
||||
url: "/system/user/profile/teacherAndStudentInfo",
|
||||
method: "get"
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user