mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-29 21:05:14 +08:00
69 lines
1.9 KiB
Java
69 lines
1.9 KiB
Java
package plus.bookshelf.Dao.Mapper;
|
|
|
|
import plus.bookshelf.Dao.DO.UserFavoritesDO;
|
|
|
|
public interface UserFavoritesDOMapper {
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
int insert(UserFavoritesDO record);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
int insertSelective(UserFavoritesDO record);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
UserFavoritesDO selectByPrimaryKey(Integer id);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
int updateByPrimaryKeySelective(UserFavoritesDO record);
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table user_book_favorites_relation
|
|
*
|
|
* @mbg.generated
|
|
*/
|
|
int updateByPrimaryKey(UserFavoritesDO record);
|
|
|
|
/**
|
|
* 通过用户id和书籍id删除用户收藏状态
|
|
* @param userId
|
|
* @param bookId
|
|
* @return
|
|
*/
|
|
int deleteByUserIdAndBookId(Integer userId, Integer bookId);
|
|
|
|
/**
|
|
* 通过用户id和书籍id获取用户收藏状态
|
|
* @param userId
|
|
* @param bookId
|
|
* @return
|
|
*/
|
|
UserFavoritesDO selectCountByUserIdAndBookId(Integer userId, Integer bookId);
|
|
} |