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

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

@@ -34,7 +34,7 @@ const casePageList=function(query){
/*分页查询 收藏的文章信息
*@param {Object} query
@param Integer type 根据什么类型搜索,这块暂时不传
@param pageIndex 第几页 pageSize 每页展示多少行
@param pageIndex 第几页 pageSize 每页展示多少行
keyword对应关键字查询
*/
const articlePageList=function(query){
@@ -45,7 +45,7 @@ const articlePageList=function(query){
@param Integer type 根据什么类型搜索,暂时不传
@param pageIndex 第几页 pageSize 每页展示多少行
keyword对应关键字查询
*/
const coursePageList=function(query){
return ajax.post('/xboe/m/favorite/mycourselist',query);
@@ -85,16 +85,23 @@ const has=function(objType,objId){
*/
const findAll=function(query){
return ajax.post('/xboe/m/favorite/findAll',query);
}
}
/*
我的收藏 全部
@param pageIndex 第几页
@param pageSize 每页行数
@param keyword 关键字
@param keyword 关键字
*/
const queryAll=function(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{
has,
@@ -107,5 +114,6 @@ export default{
articlePageList,
coursePageList,
findAll,
queryAll
queryAll,
isNoFavorite
}