package com.blog.dao;
import com.blog.domain.Article;
import com.blog.domain.Comment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CommentDao {
int deleteByPrimaryKey(Long id);
int insert(Comment record);
int insertSelective(Comment record);
Comment selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Comment record);
int updateByPrimaryKeyWithBLOBs(Comment record);
int updateByPrimaryKey(Comment record);
int countAllNum();
List<Comment> queryAll(@Param("article_id") int article_id,@Param("offset") int offset, @Param("limit") int limit);
}