|
@@ -4,10 +4,11 @@ import request from '@/utils/request'
|
|
|
// GET
|
|
|
// /prod-api/front/homework/getHomeworks
|
|
|
// 01 查询作业模板
|
|
|
-export function getHomeworks() {
|
|
|
+export function getHomeworks(params) {
|
|
|
return request({
|
|
|
url: '/front/homework/getHomeworks',
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -15,10 +16,11 @@ export function getHomeworks() {
|
|
|
// GET
|
|
|
// /prod-api/front/homework/getStudentHomeworks
|
|
|
// 01 查询学生作业列表
|
|
|
-export function getStudentHomeworks() {
|
|
|
+export function getStudentHomeworks(params) {
|
|
|
return request({
|
|
|
url: '/front/homework/getStudentHomeworks',
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -26,10 +28,11 @@ export function getStudentHomeworks() {
|
|
|
// GET
|
|
|
// /prod-api/front/homework/getTeacherHomeworks
|
|
|
// 01 查询老师发布作业列表
|
|
|
-export function getTeacherHomeworks() {
|
|
|
+export function getTeacherHomeworks(params) {
|
|
|
return request({
|
|
|
url: '/front/homework/getTeacherHomeworks',
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -37,10 +40,11 @@ export function getTeacherHomeworks() {
|
|
|
// POST
|
|
|
// /prod-api/front/homework/publicStudentHomework
|
|
|
// 01 发布学生作业
|
|
|
-export function publicStudentHomework() {
|
|
|
+export function publicStudentHomework(data) {
|
|
|
return request({
|
|
|
url: '/front/homework/publicStudentHomework',
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -48,9 +52,10 @@ export function publicStudentHomework() {
|
|
|
// POST
|
|
|
// /prod-api/front/homework/saveHomeworks
|
|
|
// 01 保存作业模板
|
|
|
-export function saveHomeworks() {
|
|
|
+export function saveHomeworks(data) {
|
|
|
return request({
|
|
|
url: '/front/homework/saveHomeworks',
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
})
|
|
|
}
|