mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-19 07:46:43 +08:00
二次查询接口
This commit is contained in:
@@ -11,7 +11,7 @@ const portalList = function(num, type) {
|
||||
return ajax.get(`/xboe/m/article/list?num=${num}&type=${type}`);
|
||||
}
|
||||
/*
|
||||
文章列表,门户页面
|
||||
文章列表,门户页面
|
||||
@param{Objece} query 查询的json{pageIndex:1,pageSize:20,keyword:'',}
|
||||
*/
|
||||
const findPortal=function(query){
|
||||
@@ -112,13 +112,22 @@ const savaAudit = function(id,auditRemark,auditState) {
|
||||
const isEnabled = function(id,enabled) {
|
||||
return ajax.get(`/xboe/m/article/isEnabled?id=${id}&enabled=${enabled}`);
|
||||
}
|
||||
/*
|
||||
/*
|
||||
贡献排行榜
|
||||
pageSize 你需要的条数
|
||||
*/
|
||||
const countsUsername=function(pageSize){
|
||||
return ajax.get('/xboe/m/article/counts-username?pageSize='+pageSize);
|
||||
}
|
||||
/**
|
||||
* 二次查询
|
||||
* @param{
|
||||
* ids
|
||||
* }
|
||||
* */
|
||||
const ids=function (data){
|
||||
return ajax.postJson('/xboe/m/article/ids',data);
|
||||
}
|
||||
|
||||
export default {
|
||||
portalList,
|
||||
@@ -134,5 +143,6 @@ export default {
|
||||
isEnabled,
|
||||
findPortal,
|
||||
usernameList,
|
||||
countsUsername
|
||||
countsUsername,
|
||||
ids
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user