二次查询接口

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
}

View File

@@ -109,6 +109,16 @@ const details = function (id, addView) {
return ajax.get('/xboe/m/boe/cases/details?' + pars);
}
/**
* 二次查询
* @param{
* ids
* }
* */
const ids=function (data){
return ajax.postJson('/xboe/m/boe/cases/ids',data);
}
export default {
indexList,
queryList,
@@ -122,5 +132,6 @@ export default {
queryPraises,
queryComments,
majorTypes,
details
details,
ids
}

View File

@@ -413,6 +413,15 @@ const queryCrowd=function(query){
return ajax.postJson('/xboe/m/course/manage/queryCrowd',query);
}
/**
* 二次查询
* @param{
* ids
* }
* */
const ids=function (data){
return ajax.postJson('/xboe/m/course/manage/ids',data);
}
export default {
saveBase,
submitCourse,
@@ -451,6 +460,7 @@ export default {
exportTeacherCourse,
exportCourseAudit,
exportCourse,
queryCrowd
queryCrowd,
ids
}

View File

@@ -187,6 +187,17 @@ const replayClevel3=function(data){
const saveComment=function(data) {
return ajax.postJson('/xboe/m/qa/answer/save-comment',data);
}
/**
* 二次查询
* @param{
* ids
* }
* */
const ids=function (data){
return ajax.postJson('/xboe/m/qa/question/ids',data);
}
export default{
indexList,
pageList,
@@ -210,5 +221,6 @@ export default{
page,
has,
saveComment,
replayClevel3
replayClevel3,
ids
}

View File

@@ -93,6 +93,16 @@ const restore=function (id){
return ajax.get(baseURL,'/xboe/subgroup/m/noteinfo/restore?id='+id);
}
/**
* 二次查询
* @param{
* ids
* }
* */
const ids=function (data){
return ajax.postJson('/xboe/subgroup/m/noteinfo/ids',data);
}
export default {
save,
detail,
@@ -104,5 +114,6 @@ export default {
query,
course,
update,
restore
restore,
ids
}