我分享的全部和分享给我的全部,批量查看是否已收藏

This commit is contained in:
86182
2022-06-01 10:58:08 +08:00
parent ececd71f7b
commit eccf1a427c
2 changed files with 40 additions and 7 deletions

View File

@@ -95,6 +95,13 @@ const findAll=function(query){
const queryAll=function(query){ const queryAll=function(query){
return ajax.post('/xboe/m/favorite/queryAll',query); return ajax.post('/xboe/m/favorite/queryAll',query);
} }
/**
* 查看是否已收藏 批量
* @param {问答或者文章或者课程的id数组} data
* */
const isNoFavorite=function(date){
return ajax.postJson('/xboe/m/favorite/isNoFavorite',data);
}
export default{ export default{
has, has,
@@ -107,5 +114,6 @@ export default{
articlePageList, articlePageList,
coursePageList, coursePageList,
findAll, findAll,
queryAll queryAll,
isNoFavorite
} }

View File

@@ -121,6 +121,29 @@ const updateIsRead=function(id){
const deleteshares=function(id){ const deleteshares=function(id){
return ajax.get(`/xboe/m/share/delete-shares?id=${id}`); return ajax.get(`/xboe/m/share/delete-shares?id=${id}`);
} }
/**
* 我分享的全部
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param keyword 关键字搜索
* @param isRead 是否已读
* */
const findMeShare=function (query){
return ajax.post('/xboe/m/share/findMeShare',query);
}
/**
* 分享给我的全部
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param keyword 关键字搜索
* @param isRead 是否已读
* */
const findShareMe=function (query){
return ajax.post('/xboe/m/share/findShareMe',query);
}
/**
* */
export default{ export default{
save, save,
has, has,
@@ -134,5 +157,7 @@ const deleteshares=function(id){
mymecourselist, mymecourselist,
mymearticlelist, mymearticlelist,
updateIsRead, updateIsRead,
deleteshares deleteshares,
findMeShare,
findShareMe
} }