mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
50 lines
840 B
JavaScript
50 lines
840 B
JavaScript
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);
|
|
}
|
|
|
|
export default {
|
|
getHas,
|
|
findRecords,
|
|
pushExecute,
|
|
pushList
|
|
}
|