1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-14 20:41:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

用户收藏列表后端完成

This commit is contained in:
2022-04-07 10:38:25 +08:00
parent 1d93ade6ff
commit af88f65679
5 changed files with 68 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
package plus.bookshelf.Service.Service;
import plus.bookshelf.Common.Error.BusinessException;
import plus.bookshelf.Dao.DO.BookDO;
import plus.bookshelf.Service.Model.BookModel;
import java.util.List;
@@ -64,6 +63,14 @@ public interface BookService {
*/
Boolean removeFavorites(Integer userId, Integer bookId) throws BusinessException;
/**
* 获取用户收藏书籍列表
* @param userId
* @return
* @throws BusinessException
*/
List<BookModel> getFavoritesList(Integer userId) throws BusinessException;
/**
* 获取用户收藏状态
* @param userId 用户id