package com.heketai.website.mapper;

import com.heketai.website.entity.NewsArticle;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 文章资讯 Mapper 接口
 * </p>
 *
 * @author xjl
 * @since 2019-11-19
 */
public interface NewsArticleMapper extends BaseMapper<NewsArticle> {
    NewsArticle preArticle(@Param("id") Integer id,
                           @Param("language") Integer language,
                           @Param("type") Integer type,
                           @Param("cid") String cid);

    NewsArticle nextArticle(@Param("id") Integer id,
                            @Param("language") Integer language,
                            @Param("type") Integer type,
                            @Param("cid") String cid);

    Integer insertId(NewsArticle newsArticle);
}
