package com.zhujizheng.IHome.collect.service; import com.zhujizheng.IHome.collect.dto.PYCollectDTO; import com.zhujizheng.IHome.collect.vo.PYCollectVO; import java.util.List; public interface PYCollectService { /** * @Description: 添加收藏数据 * @Param: com.zhujizheng.IHome.collect.dto.PYCollectDTO; * @return: com.zhujizheng.IHome.collect.vo.PYCollectVO; * @Author: 朱吉峥 * @Date: 2021/03/20 */ PYCollectVO pushCollectWithDTO(PYCollectDTO dto); /** * @Description: 查询收藏数据 * @Param: 用户ID,收藏id, 收藏类型; * @return: com.zhujizheng.IHome.collect.vo.PYCollectVO; * @Author: 朱吉峥 * @Date: 2021/03/20 */ List getAllCollect(int userId, int collectId); /** * @Description: 查询收藏数据,指定type * @Param: 用户ID,收藏id, 收藏类型; * @return: com.zhujizheng.IHome.collect.vo.PYCollectVO; * @Author: 朱吉峥 * @Date: 2021/03/20 */ List getCollectWithType(int userId, int collectId, int type); /** * @Description: 取消收藏 * @Param: 收藏id; * @return: 非0成功,否则失败; * @Author: 朱吉峥 * @Date: 2021/03/20 */ int cancelCollectWithId(int collectId); }