mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 14:56:44 +08:00
2022年5月29日从svn移到git
This commit is contained in:
58
src/api/modules/pushRecord.js
Normal file
58
src/api/modules/pushRecord.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
|
||||
/**
|
||||
* 查询已有记录
|
||||
* @param objId 对象的id
|
||||
*/
|
||||
const getHas = function(objId) {
|
||||
return ajax.get('/xboe/push/user/record/has?objId=' + objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* testId
|
||||
* testName
|
||||
* groupId
|
||||
* groupName
|
||||
* @param {*} data
|
||||
*/
|
||||
|
||||
const pushExecute = function(data) {
|
||||
return ajax.post('/xboe/m/exam/task/execute',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 提取推送记录
|
||||
* @param {考试id} objId
|
||||
*/
|
||||
const pushList = function(objId) {
|
||||
return ajax.post('/xboe/m/exam/task/list',{testId:objId});
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param {
|
||||
aid:用户的id , 可以不传
|
||||
objId: 对象的id
|
||||
objType: int 对象的类型 1考试
|
||||
} data
|
||||
*/
|
||||
const findRecords = function(data) {
|
||||
return ajax.post('/xboe/push/user/record/pagelist',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询我的记录,分页查询,和上面一致
|
||||
* @param {} data
|
||||
*/
|
||||
const myRecords = function(data) {
|
||||
return ajax.post('/xboe/push/user/record/mylist',data);
|
||||
}
|
||||
|
||||
export default {
|
||||
getHas,
|
||||
findRecords,
|
||||
pushExecute,
|
||||
pushList,
|
||||
myRecords
|
||||
}
|
||||
Reference in New Issue
Block a user