二次查询接口

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}`); return ajax.get(`/xboe/m/article/list?num=${num}&type=${type}`);
} }
/* /*
文章列表,门户页面 文章列表,门户页面
@param{Objece} query 查询的json{pageIndex:1,pageSize:20,keyword:'',} @param{Objece} query 查询的json{pageIndex:1,pageSize:20,keyword:'',}
*/ */
const findPortal=function(query){ const findPortal=function(query){
@@ -112,13 +112,22 @@ const savaAudit = function(id,auditRemark,auditState) {
const isEnabled = function(id,enabled) { const isEnabled = function(id,enabled) {
return ajax.get(`/xboe/m/article/isEnabled?id=${id}&enabled=${enabled}`); return ajax.get(`/xboe/m/article/isEnabled?id=${id}&enabled=${enabled}`);
} }
/* /*
贡献排行榜 贡献排行榜
pageSize 你需要的条数 pageSize 你需要的条数
*/ */
const countsUsername=function(pageSize){ const countsUsername=function(pageSize){
return ajax.get('/xboe/m/article/counts-username?pageSize='+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 { export default {
portalList, portalList,
@@ -134,5 +143,6 @@ export default {
isEnabled, isEnabled,
findPortal, findPortal,
usernameList, usernameList,
countsUsername countsUsername,
ids
} }

View File

@@ -109,6 +109,16 @@ const details = function (id, addView) {
return ajax.get('/xboe/m/boe/cases/details?' + pars); 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 { export default {
indexList, indexList,
queryList, queryList,
@@ -122,5 +132,6 @@ export default {
queryPraises, queryPraises,
queryComments, queryComments,
majorTypes, majorTypes,
details details,
ids
} }

View File

@@ -413,6 +413,15 @@ const queryCrowd=function(query){
return ajax.postJson('/xboe/m/course/manage/queryCrowd',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 { export default {
saveBase, saveBase,
submitCourse, submitCourse,
@@ -451,6 +460,7 @@ export default {
exportTeacherCourse, exportTeacherCourse,
exportCourseAudit, exportCourseAudit,
exportCourse, exportCourse,
queryCrowd queryCrowd,
ids
} }

View File

@@ -187,6 +187,17 @@ const replayClevel3=function(data){
const saveComment=function(data) { const saveComment=function(data) {
return ajax.postJson('/xboe/m/qa/answer/save-comment',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{ export default{
indexList, indexList,
pageList, pageList,
@@ -210,5 +221,6 @@ export default{
page, page,
has, has,
saveComment, 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); 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 { export default {
save, save,
detail, detail,
@@ -104,5 +114,6 @@ export default {
query, query,
course, course,
update, update,
restore restore,
ids
} }