package com.zhujizheng.IHome.generator.mapper; import com.zhujizheng.IHome.generator.dao.PYEveryMomentComment; import org.apache.ibatis.annotations.Param; import java.util.List; public interface PYEveryMomentCommentMapper { /** * @Description: 根据动态id获取动态的所有评论 * @Param: 动态id * @return: com.zhujizheng.IHome.generator.dao.PYEveryMomentComment * @Author: 朱吉峥 * @Date: 2019/03/13 */ List seletAllCommentByEmId(@Param("emId") int emId); /** * @Description: 插入评论模型 * @Param: com.zhujizheng.IHome.generator.dao.PYEveryMomentComment * @return: 非0代表成功,0代表失败 * @Author: 朱吉峥 * @Date: 2019/03/29 */ int insertCommentEveryMoment(PYEveryMomentComment comment); /** * @Description: 删除评论 * @Param: 【评论id,动态id,评论用户id,被评论用户id,评论时间】 * @return: 非0代表成功,0代表失败 * @Author: 朱吉峥 * @Date: 2019/03/29 */ int updateCommentEveryMoment(@Param("commentId") int commentId, @Param("emId") int emId, @Param("fromUserId") int fromUserId, @Param("toUserId") int toUserId, @Param("commentTime") long commentTime); }