mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
49
api/modules/pushRecord.js
Normal file
49
api/modules/pushRecord.js
Normal file
@@ -0,0 +1,49 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user