forgeplus-react/src/glcc/api.js

225 lines
4.4 KiB
JavaScript
Raw Normal View History

2022-04-08 17:34:37 +08:00
import fetch from './fetch';
2023-04-26 14:40:26 +08:00
// 获取当前用户项目报名信息(项目、课题)
2022-04-08 17:34:37 +08:00
export function getUserApplyInfo(params) {
return fetch({
url: `/api/applyInformation/getUserApplyInfo`,
2022-04-08 17:34:37 +08:00
method: 'get',
params
});
}
2023-04-26 14:40:26 +08:00
//报名夏令营(项目、课题报名)
export function applyGlcc(data) {
2022-04-08 17:34:37 +08:00
return fetch({
url: '/api/applyInformation/create',
2022-04-08 17:34:37 +08:00
method: 'post',
data: data
});
2022-05-17 17:31:26 +08:00
}
2023-04-26 14:40:26 +08:00
// 修改报名信息
export function updateApplyGlcc(data) {
return fetch({
url: '/api/applyInformation/update',
method: 'post',
data: data
});
}
2022-05-18 16:06:38 +08:00
//提交报名信息(学生)
export function studentApply(data) {
return fetch({
url: '/api/studentApply/create',
method: 'post',
data: data
});
}
//修改报名信息(学生)
export function studentApplyEdit(data) {
return fetch({
url: '/api/studentApply/update',
method: 'post',
data: data
});
}
2022-05-17 17:31:26 +08:00
// 获取当前学生用户报名信息
2022-05-17 17:21:35 +08:00
// 课题列表
export function projectList(params) {
return fetch({
url: `/api/applyInformation/list`,
method: 'get',
params
});
}
// 课题列表
export function taskList(params) {
return fetch({
url: `/api/applyInformation/taskList`,
method: 'get',
params
});
}
// 项目id查询项目详情
2023-05-31 14:25:13 +08:00
export function getProjectById(id, params) {
2022-05-17 17:21:35 +08:00
return fetch({
url: `/api/applyInformation/${id}`,
2023-05-31 14:25:13 +08:00
method: 'get',
params
2022-05-17 17:21:35 +08:00
});
}
2022-05-18 16:06:38 +08:00
// 获取用户(学生)课题报名信息
2022-05-17 17:31:26 +08:00
export function getStudentApplyInfo(params) {
return fetch({
url: `/api/studentApply/getUserApplyInfo`,
method: 'get',
params
});
}
2022-05-17 17:21:35 +08:00
// 用户取消课题报名
export function cancelTaskApply(data) {
return fetch({
url: '/api/studentApply/delete',
method: 'post',
data: data
});
2022-05-18 16:06:38 +08:00
}
2022-05-20 16:48:08 +08:00
// 学生报名课题列表
export function studentApplyList(params) {
return fetch({
url: `/api/studentApply/list`,
method: 'get',
params
});
2022-05-28 14:17:34 +08:00
}
// 课题详情
export function getTaskById(id) {
return fetch({
url: `/api/applyInformation/task/${id}`,
method: 'get'
});
2022-06-07 10:35:09 +08:00
}
// 学生报名列表查询
2022-06-08 14:10:16 +08:00
export function getStudentList(params) {
return fetch({
2022-06-07 10:35:09 +08:00
url: '/api/studentApply/list',
method: 'get',
params,
});
2022-06-08 14:10:16 +08:00
}
// 是否有审核权限
export function hasAuditRole(params) {
return fetch({
url: '/api/applyInformation/hasAuditRole',
method: 'get',
params,
});
}
// 审核课题列表
export function getAuditList(params) {
return fetch({
url: '/api/applyInformation/auditList',
method: 'get',
params,
});
}
// 导师审核报名课题
export function auditPassTask(data) {
return fetch({
url: `/api/studentApply/auditPassTask`,
method: 'post',
data
});
2022-06-23 16:20:02 +08:00
}
// 导师审核结果
export function getPassList(params) {
return fetch({
url: '/api/studentApply/passList',
method: 'get',
params,
});
2022-08-13 13:31:03 +08:00
}
2022-08-11 15:41:22 +08:00
// 中期考核-查看中期考核信息(返回导师评分)
2022-09-23 15:27:46 +08:00
export function getMediumTermExamineInfo(taskId, params) {
2022-08-13 13:31:03 +08:00
return fetch({
2022-09-23 15:27:46 +08:00
url: `/api/examineMaterial/getExamineInfo/${taskId}`,
method: 'get',
params
2022-08-13 13:31:03 +08:00
});
}
2022-08-11 15:41:22 +08:00
// 中期考核-查看中期考核信息(不返回返回导师评分)
export function getBriefMediumTermExamineMaterial(taskId) {
return fetch({
url: `/api/mediumTermExamineMaterial/getBriefMediumTermExamineMaterial/${taskId}`,
method: 'get'
});
}
2022-08-13 13:31:03 +08:00
// 中期考核-提交中期考核信息
export function submitMedium(data) {
return fetch({
2022-09-23 15:27:46 +08:00
url: `/api/examineMaterial/create`,
2022-08-13 13:31:03 +08:00
method: 'post',
data
});
}
// 中期考核-导师提交中期考核评分
export function submitTutorEvaluation(data) {
return fetch({
url: `/api/tutorEvaluation/create`,
method: 'post',
data
});
}
// 中期考核-导师更新中期考核评分
export function updateTutorEvaluation(data) {
return fetch({
url: `/api/tutorEvaluation/update`,
method: 'post',
data
});
2022-08-13 15:09:01 +08:00
}
// 中期考核结果list
export function getMediumTermExamineInfoList(params) {
return fetch({
2022-09-23 15:27:46 +08:00
url: `/api/examineMaterial/getExamineInfoList`,
2022-08-13 15:09:01 +08:00
method: 'get',
params,
});
2023-04-26 14:40:26 +08:00
}
// 查看GLCC配置信息列表
export function getGlccSettings(params) {
return fetch({
url: `/api/glccSettings/settingList`,
method: 'get',
params,
});
}
// 删除项目报名信息
export function deleteApplyInfo(data) {
return fetch({
url: `/api/applyInformation/delete`,
method: 'post',
data
});
2022-05-20 16:48:08 +08:00
}