v3.0.6
This commit is contained in:
6
source/vue/xzs-student/src/api/dashboard.js
Normal file
6
source/vue/xzs-student/src/api/dashboard.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
index: () => post('/api/student/dashboard/index'),
|
||||
task: () => post('/api/student/dashboard/task')
|
||||
}
|
||||
6
source/vue/xzs-student/src/api/examPaper.js
Normal file
6
source/vue/xzs-student/src/api/examPaper.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
select: id => post('/api/student/exam/paper/select/' + id),
|
||||
pageList: query => post('/api/student/exam/paper/pageList', query)
|
||||
}
|
||||
8
source/vue/xzs-student/src/api/examPaperAnswer.js
Normal file
8
source/vue/xzs-student/src/api/examPaperAnswer.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
pageList: query => post('/api/student/exampaper/answer/pageList', query),
|
||||
answerSubmit: form => post('/api/student/exampaper/answer/answerSubmit', form),
|
||||
read: id => post('/api/student/exampaper/answer/read/' + id),
|
||||
edit: form => post('/api/student/exampaper/answer/edit', form)
|
||||
}
|
||||
6
source/vue/xzs-student/src/api/login.js
Normal file
6
source/vue/xzs-student/src/api/login.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { post, postWithLoadTip } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
login: query => postWithLoadTip(`/api/user/login`, query),
|
||||
logout: query => post(`/api/user/logout`, query)
|
||||
}
|
||||
4
source/vue/xzs-student/src/api/question.js
Normal file
4
source/vue/xzs-student/src/api/question.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
}
|
||||
6
source/vue/xzs-student/src/api/questionAnswer.js
Normal file
6
source/vue/xzs-student/src/api/questionAnswer.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
pageList: query => post('/api/student/question/answer/page', query),
|
||||
select: id => post('/api/student/question/answer/select/' + id)
|
||||
}
|
||||
5
source/vue/xzs-student/src/api/register.js
Normal file
5
source/vue/xzs-student/src/api/register.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { postWithLoadTip } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
register: query => postWithLoadTip(`/api/student/user/register`, query)
|
||||
}
|
||||
6
source/vue/xzs-student/src/api/subject.js
Normal file
6
source/vue/xzs-student/src/api/subject.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
list: query => post('/api/student/education/subject/list'),
|
||||
select: id => post('/api/student/education/subject/select/' + id)
|
||||
}
|
||||
11
source/vue/xzs-student/src/api/user.js
Normal file
11
source/vue/xzs-student/src/api/user.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { post } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
createUser: query => post('/api/student/user/edit', query),
|
||||
getCurrentUser: () => post('/api/student/user/current'),
|
||||
getUserEvent: () => post('/api/student/user/log'),
|
||||
update: query => post('/api/student/user/update', query),
|
||||
messagePageList: query => post('/api/student/user/message/page', query),
|
||||
read: id => post('/api/student/user/message/read/' + id),
|
||||
getMessageCount: () => post('/api/student/user/message/unreadCount')
|
||||
}
|
||||
Reference in New Issue
Block a user