Files
learning-system-mobile/api/modules/index.js
2022-05-29 18:59:24 +08:00

33 lines
614 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**首页的数据,也包括查询*/
import ajax from '@/utils/xajax.js'
/**
* 首页分页查询
* @param {Object} query
* {
pageIndex: 第几页
pageSize: 每页多少条
orderType:0表最新1表最热
}
*/
const findAll = function(query) {
return ajax.post('/xboe/mobile/index/list',query);
}
/**
* 首页分页查询
* @param {Object} query
* {
pageIndex: 第几页
pageSize: 每页多少条
orderType:0表最新1表最热
}
*/
const findByType = function(query) {
return ajax.post('/xboe/mobile/index/list-by-type',query);
}
export default {
findAll,
findByType
}