2021-03-31 18:15:01 +00:00
|
|
|
import request from '../utils/request.js'
|
|
|
|
|
|
|
|
export const getGrade = () => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getSemesters = () => {
|
|
|
|
return request({
|
|
|
|
url: "/course/semesters",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getSemesterGrades = (semester_id) => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade/semester",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
semesterId: semester_id
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getCourseGrades = (semester_id) => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade/courses",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
semesterId: semester_id
|
|
|
|
}
|
|
|
|
})
|
2021-04-09 15:51:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const getStudentsGrade = () => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade/students",
|
|
|
|
method: "get",
|
|
|
|
data: {}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getGradeForParent = (openid) => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade/parent",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
openid
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getSemestersForParent = (openid) => {
|
|
|
|
return request({
|
|
|
|
url: "/course/semesters/parent",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
openid
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getSemesterGradesForParent = (openid, semester_id) => {
|
|
|
|
return request({
|
|
|
|
url: "/course/grade/semester/parent",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
openid,
|
|
|
|
semesterId: semester_id
|
|
|
|
}
|
|
|
|
})
|
2021-03-31 18:15:01 +00:00
|
|
|
}
|