二次查询接口

This commit is contained in:
86182
2022-09-20 11:42:20 +08:00
parent 2626fe7fa2
commit 44253f06f0
5 changed files with 61 additions and 7 deletions

View File

@@ -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
}