mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
专业分类
This commit is contained in:
@@ -3,7 +3,7 @@ import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**首页查询
|
||||
* pageSize
|
||||
* orderField
|
||||
* orderField
|
||||
* orderAsc
|
||||
*/
|
||||
const indexList = function(query) {
|
||||
@@ -12,7 +12,7 @@ const indexList = function(query) {
|
||||
/*
|
||||
*案例分页搜索查询 是否推荐
|
||||
*@param(String) keyWord 关键词
|
||||
*@param(String) orderField 需要排序的字段 不传默认是最新
|
||||
*@param(String) orderField 需要排序的字段 不传默认是最新
|
||||
*@param (boolean) orderAsc 升序还是倒叙
|
||||
*@param(Boolean) breCommend 是否推荐 true或者false
|
||||
*@param(String) orgDomain 组织机构
|
||||
@@ -80,19 +80,26 @@ const usernameList= function(pageSize){
|
||||
}
|
||||
/*
|
||||
人气榜
|
||||
@param pageSize 长度
|
||||
@param pageSize 长度
|
||||
*/
|
||||
const queryPraises=function(pageSize){
|
||||
return ajax.get(`/xboe/m/boe/cases/query-praises?pageSize=${pageSize}`);
|
||||
}
|
||||
/*
|
||||
好评榜
|
||||
@param pageSize 长度
|
||||
@param pageSize 长度
|
||||
*/
|
||||
const queryComments=function(pageSize){
|
||||
return ajax.get(`/xboe/m/boe/cases/query-comments?pageSize=${pageSize}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 专业分类
|
||||
* */
|
||||
const majorTypes=function (){
|
||||
return ajax.get('/xboe/m/boe/cases/majorTypes');
|
||||
}
|
||||
|
||||
export default {
|
||||
indexList,
|
||||
queryList,
|
||||
@@ -104,5 +111,6 @@ export default {
|
||||
query,
|
||||
usernameList,
|
||||
queryPraises,
|
||||
queryComments
|
||||
queryComments,
|
||||
majorTypes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user