package com.hc.business.mapper;

import com.hc.business.model.News;
import com.hc.core.utils.mapper.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 新闻表
 * (News)表数据库访问层
 *
 * @author java
 * @since 2020-11-20 11:48:36
 */

@Repository
public interface NewsMapper extends Mapper<News> {

    /**
     * 依据标签id查询news
     *
     * @param tagId 标签id
     * @return 实例对象数组
     */
    List<News> queryByTagId(Integer tagId);


}