123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import req from '../request';
- export default {
- //登录
- login: (data: any) => {
- return req({
- url: '/user/login',
- method: 'post',
- data: data,
- headers: {
- auth: false //不要鉴权
- }
- });
- },
- //退出
- logout: (data: any) => {
- return req({
- url: '/user/logout',
- method: 'get',
- data: data
- });
- },
- //获取登录信息
- getUserInfo: (data: any) => {
- return req({
- url: '/user/userinfo',
- method: 'get',
- data: data
- });
- },
- //获取班级列表
- classList: (data: any) => {
- return req({
- url: '/school/classes_list',
- method: 'get',
- data: data
- });
- },
- //获取学生列表
- studentList: (data: any) => {
- return req({
- url: '/user/student_list',
- method: 'get',
- data: data
- });
- },
- //获取百度语音token
- baiduToken: (data: any) => {
- return req({
- url: '/bdapi_token',
- method: 'get',
- data: data
- });
- },
- //获取测试数据列表
- reportList: (data: any) => {
- return req({
- url: '/report/index',
- method: 'get',
- data: data
- });
- },
- //获取测试数据明细
- reportDetails: (data: any) => {
- return req({
- url: '/exam/search',
- method: 'get',
- data: data
- });
- },
- //获取工作站列表
- allExams: (data: any) => {
- return req({
- url: '/school/get_all_exams',
- method: 'post',
- data: data
- });
- },
- //删除工作站
- delExamSettings: (data: any) => {
- return req({
- url: '/school/del_gpu_exam_setting',
- method: 'post',
- data: data
- });
- },
- //关闭工作站
- closeExamForce: (data: any) => {
- return req({
- url: '/school/close_exam_force',
- method: 'post',
- data: data
- });
- }
- };
|